Containing Type: Pattern
Assembly: Pihrtsoft.Text.RegularExpressions.Linq.dll
Method | Summary |
---|---|
Replace(String) | Within a specified input string, replaces strings that match the current instance with an empty string. |
Replace(String, MatchEvaluator) | Within a specified input string, replaces all strings that match the current instance with a string returned by a MatchEvaluator delegate. |
Replace(String, MatchEvaluator, RegexOptions) | Within a specified input string, replaces all strings that match the current instance with a string returned by a MatchEvaluator delegate. Specified options modify the matching operation. |
Replace(String, String) | Within a specified input string, replaces all strings that match the current instance with a specified replacement string. |
Replace(String, String, RegexOptions) | Within a specified input string, replaces all strings that match the current instance with a specified replacement string. Specified options modify the matching operation. |
Within a specified input string, replaces strings that match the current instance with an empty string.
public string Replace(string input)
input String
The string to search for a match.
input is null
.
Within a specified input string, replaces all strings that match the current instance with a string returned by a MatchEvaluator delegate.
public string Replace(string input, System.Text.RegularExpressions.MatchEvaluator evaluator)
input String
The string to search for a match.
evaluator MatchEvaluator
A method that examines each match and returns a replacement string.
input or evaluator is null
.
Within a specified input string, replaces all strings that match the current instance with a string returned by a MatchEvaluator delegate. Specified options modify the matching operation.
public string Replace(string input, System.Text.RegularExpressions.MatchEvaluator evaluator, System.Text.RegularExpressions.RegexOptions options)
input String
The string to search for a match.
evaluator MatchEvaluator
A method that examines each match and returns a replacement string.
options RegexOptions
A bitwise combination of the enumeration values that specify options for matching.
input or evaluator is null
.
Within a specified input string, replaces all strings that match the current instance with a specified replacement string.
public string Replace(string input, string replacement)
input String
The string to search for a match.
replacement String
The replacement string.
Within a specified input string, replaces all strings that match the current instance with a specified replacement string. Specified options modify the matching operation.
public string Replace(string input, string replacement, System.Text.RegularExpressions.RegexOptions options)
input String
The string to search for a match.
replacement String
The replacement string.
options RegexOptions
A bitwise combination of the enumeration values that specify options for matching.