Skip to main content
Version: v4 (Stable)

Search

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

Returns TRUE if a regular expression <sRegEx> finds a match anywhere in the string <sText>. Unlike the Match method, the search applies to the entire string.

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