Toggle menu
875
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 04:01, 1 July 2013 by Tungocman (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=<nowiki>Regex</nowiki> |Description=<nowiki>A regexp engine</nowiki> |Constructors= {{CGscriptConstructors_Template|Parameters= {{CGscriptParameter...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Regex



A regexp engine

Constructors

  • (string exp "Regular expression to use. See .NET documentation of what is possible for Regex class", string matchAgainst "String to match against", bool content "True = Specifies single-line mode. Changes the meaning of the dot (.) so it matches every character (instead of every character except newline). False = Multiline mode. Changes the meaning of ^ and $ so they match at the beginning and end, respectively, of any line, and not just the beginning and end of the entire string.") - Match a string against a regular expression.

Methods

  • string GetValue(number matchIndex "Which match to give group count for", string groupname "Get by name if you used (?<name>)") - Get value for a given match
  • string GetValue(number matchIndex "Which match to give group count for", number groupname "Get by index") - Get value for a given match
  • number NumberOfGroups(number matchIndex "Which match to give group count for") - Get number of groups for a given match
  • string ToString() - The string representation of the object.

Properties

  • number NumberOfMatches { get; } - Amount of matches
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.