Toggle menu
876
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 07:45, 2 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Regex



A regexp engine

Parent class

Inherits from object

Constructors

  • (string exp "Regular expression to use. See .NET documentation of what is possible for Regex class", string matchAgainst "String to match against", bool isSingleLine "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(int 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(int matchIndex "Which match to give group count for", int groupname "Get by index") - Get value for a given match
  • int NumberOfGroups(int matchIndex "Which match to give group count for") - Get number of groups for a given match
  • (From object) string ToString() - The string representation of the object.

Properties

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