Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Regular Expressions : regex

Syntax

#(regex,%name,%value)
#(regex,%name,%value,%caseless)
#(regex,%name,%value,[%caseless],[%noerror])
#(regex,%name,%value,[%caseless],[%noerror],%eolmode)

%name is the name of the regular expression to be defined. %value is the value for the regular expression. %caseless is a flag which indicates that the regular expression should perform caseless matches. %noerror is a flag which indicates that for a bad regular expression no error should be reported. %eolmode is a flag which indicates the end of line mode to be used for the regular expression.

A new regular expression will be created with the specified name and specified value. If an object with the specified name already exists, it will be freed before the new regular expression is created. By default, if %caseless is not specified, matches will be case sensitive. By default, if %eolmode is not specified, then the default for your platform will be used. On Win32, this is CRLF and on Unix, this is LF. A value of 0 for %eolmode indicates CRLF, 1 is CR, and 2 is LF.

Example

#(regex,a-regex,ab+c)

#(def,a-string,zzzzabbbbcyyyy)

#(a-string.regex-match,a-regex)
zzzz
#(a-string)
yyyy