Skip to main content
Version: v4 (Stable)

Match

Match(sText AS String, sRegEx AS String[, nFlagSyntax AS Integer]) AS Boolean

Returns TRUE if a regular expression <sRegEx> finds a match at the beginning of the text <sText>.

The syntax option can take the following values:

  • 0x01 = ECMAScript
  • 0x02 = basic
  • 0x04 = extended
  • 0x08 = awk
  • 0x10 = grep
  • 0x20 = egrep
  • 0x0100 = icase
  • 0x0200 = nosubs
  • 0x0400 = optimize
  • 0x0800 = collate