Skip to main content

regexp

Availability

Device + Agent

Description

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 and tabulates sub-strings which match the target regular expression
  • regexp.match()Determines whether the target regular expression matches any part of the passed string
  • regexp.search()Finds 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