Skip to main content



Device + Agent


Squirrel’s regexp delegate object provides a series of methods which allow you to use and evaluate regular expressions within your Squirrel code.

Known Issue

If you attempt to use match against strings that contain NUL characters (ie. bytes of value 0), then Squirrel can’t match against any characters beyond the string’s first NUL.

Member Entities

The regexp object has the following member methods:

  • regexp.capture()Finds the first match against the target regular expression and tabulates group captures within the match
  • regexp.match()Determines whether the target regular expression matches the whole of the passed string
  • the first sub-string within the passed string which matches the target regular expression

The regexp object has the following member function:

  • regexp()Instantiates a regular expression object