Name: MATCH
Section:
String Operators
Synopsis:
<match STRING REGEXP [ACTION=(REPORT|DELETE|EXTRACT|STARTPOS|ENDPOS|LENGTH)]>
Description:
Matches REGEXP against STRING and then performs ACTION. The default ACTION is report
; when the expression matches the string match
returns the text true
.
Here are some examples:
<match "foobar" ".*"> --> "true"
<match "foobar" "foo"> --> "true"
<match "foobar" "foo" action=extract> --> "foo"
<match "foobar" "oob" action=delete> --> "far"
<match "foobar" "oob" action=startpos>--> "1"
<match "foobar" "oob" action=endpos> --> "4"
<match "foobar" "oob" action=length> --> "3"
<match "foobar" "[0-9]*"> --> ""
Edit Pointer
Function Index
Variable Index
Variable Editor

The
META-HTML
Reference Manual V1.4
Copyright © 1995, 1996,
Brian J. Fox,
1996, 1997 Universal Access Inc.
Found a bug? Send mail to
bug-manual@metahtml.com