RegexReplace class

From Catglobe Wiki
Jump to: navigation, search

RegexReplace



A regexp engine for replacing values

Parent class

Inherits from object

Constructors

  • (string exp "Regular expression to use. See .NET documentation of what is possible for Regex class", 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.") - Create a new replacer.

Methods

  • string Replace(string input "Input string to search", string replacement "Replace all matches with this string") - Replace matches with given string
  • string Replace(string input "Input string to search", Function replacement "Call this function once for every match, it must return the value to insert at the matched location. Gets each group as a seperate parameter. If using named captures, the names are mapped to parameter names.") - Replace matches by return value from Function
  • (From object) string ToString() - The string representation of the object.

Properties

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