System.Text.RegularExpressions
12 wrapped types. Load them with using { "System.Text.RegularExpressions" }. Click a class to open it.
Capture class
System.Text.RegularExpressions.Capture · assembly System.Text.RegularExpressions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Index | int | read | o.Index |
Length | int | read | o.Length |
Value | string | read | o.Value |
ValueSpan | ReadOnlySpan<char> | read | o.ValueSpan |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ToString | callMethod("ToString",[]) | string ToString() |
CaptureCollection class
System.Text.RegularExpressions.CaptureCollection · assembly System.Text.RegularExpressions
Implements: IEnumerable, IList, ICollection
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsReadOnly | bool | read | o.IsReadOnly |
Count | int | read | o.Count |
IsSynchronized | bool | read | o.IsSynchronized |
SyncRoot | object | read | o.SyncRoot |
Indexer
o.Item(int i) → Capture
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CopyTo | CopyTo(p1,p2) | void CopyTo(Array array, int arrayIndex)void CopyTo(Capture[] array, int arrayIndex) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator GetEnumerator() |
GeneratedRegexAttribute class sealed · extends Attribute
System.Text.RegularExpressions.GeneratedRegexAttribute · assembly System.Text.RegularExpressions
Constructors
new GeneratedRegexAttribute(string pattern) |
new GeneratedRegexAttribute(string pattern, RegexOptions options) |
new GeneratedRegexAttribute(string pattern, RegexOptions options, string cultureName) |
new GeneratedRegexAttribute(string pattern, RegexOptions options, int matchTimeoutMilliseconds) |
new GeneratedRegexAttribute(string pattern, RegexOptions options, int matchTimeoutMilliseconds, string cultureName) |
Ring: new GeneratedRegexAttribute(args) uses one constructor; the others are chosen by the parameter names: new GeneratedRegexAttribute().@New([ :param = value ]) or dnNew("GeneratedRegexAttribute",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Pattern | string | read | o.Pattern |
Options | RegexOptions | read | o.Options |
MatchTimeoutMilliseconds | int | read | o.MatchTimeoutMilliseconds |
CultureName | string | read | o.CultureName |
Members of the base class are inherited.
Group class · extends Capture
System.Text.RegularExpressions.Group · assembly System.Text.RegularExpressions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Success | bool | read | o.Success |
Name | string | read | o.Name |
Captures | CaptureCollection | read | o.Captures |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Synchronized | Synchronized(p1) | static Group Synchronized(Group inner) |
Members of the base class are inherited.
GroupCollection class
System.Text.RegularExpressions.GroupCollection · assembly System.Text.RegularExpressions
Implements: IEnumerable, IList, ICollection
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsReadOnly | bool | read | o.IsReadOnly |
Count | int | read | o.Count |
IsSynchronized | bool | read | o.IsSynchronized |
SyncRoot | object | read | o.SyncRoot |
Keys | IEnumerable<string> | read | o.Keys |
Values | IEnumerable<Group> | read | o.Values |
Indexer
o.Item(int groupnum) → Group
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ContainsKey | callMethod("ContainsKey",[p1]) | bool ContainsKey(string key) |
CopyTo | CopyTo(p1,p2) | void CopyTo(Array array, int arrayIndex)void CopyTo(Group[] array, int arrayIndex) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator GetEnumerator() |
TryGetValue | TryGetValue(p1) | bool TryGetValue(string key, out Group value) |
Match class · extends Group
System.Text.RegularExpressions.Match · assembly System.Text.RegularExpressions
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Groups | GroupCollection | read | o.Groups |
Empty | Match | read · static | o.Empty |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
NextMatch | callMethod("NextMatch",[]) | Match NextMatch() |
Result | callMethod("Result",[p1]) | string Result(string replacement) |
Synchronized | Synchronized(p1) | static Match Synchronized(Match inner) |
Members of the base class are inherited.
MatchCollection class
System.Text.RegularExpressions.MatchCollection · assembly System.Text.RegularExpressions
Implements: IEnumerable, IList, ICollection
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsReadOnly | bool | read | o.IsReadOnly |
Count | int | read | o.Count |
IsSynchronized | bool | read | o.IsSynchronized |
SyncRoot | object | read | o.SyncRoot |
Indexer
o.Item(int i) → Match
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CopyTo | CopyTo(p1,p2) | void CopyTo(Array array, int arrayIndex)void CopyTo(Match[] array, int arrayIndex) |
GetEnumerator | callMethod("GetEnumerator",[]) | IEnumerator GetEnumerator() |
Regex class
System.Text.RegularExpressions.Regex · assembly System.Text.RegularExpressions
Implements: ISerializable
Constructors
new Regex(string pattern) |
new Regex(string pattern, RegexOptions options) |
new Regex(string pattern, RegexOptions options, TimeSpan matchTimeout) |
Ring: new Regex(args) uses one constructor; the others are chosen by the parameter names: new Regex().@New([ :param = value ]) or dnNew("Regex",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Options | RegexOptions | read | o.Options |
RightToLeft | bool | read | o.RightToLeft |
MatchTimeout | TimeSpan | read | o.MatchTimeout |
CacheSize | int | read, write · static | o.CacheSize o.CacheSize = v |
InfiniteMatchTimeout | TimeSpan | read · static | o.InfiniteMatchTimeout |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CompileToAssembly | CompileToAssembly([ :regexinfos = …, :assemblyname = … ])CompileToAssembly([ :regexinfos = …, :assemblyname = …, :attributes = … ])CompileToAssembly([ :regexinfos = …, :assemblyname = …, :attributes = …, :resourceFile = … ]) | static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname)static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes)static void CompileToAssembly(RegexCompilationInfo[] regexinfos, AssemblyName assemblyname, CustomAttributeBuilder[] attributes, string resourceFile) |
Count | Count(value)Count([ :input = … ])Count([ :input = …, :startat = … ])Count([ :input = …, :pattern = … ])Count([ :input = …, :pattern = …, :options = … ]) | int Count(string input)int Count(ReadOnlySpan<char> input)int Count(ReadOnlySpan<char> input, int startat)static int Count(string input, string pattern)static int Count(string input, string pattern, RegexOptions options)static int Count(string input, string pattern, RegexOptions options, TimeSpan matchTimeout)static int Count(ReadOnlySpan<char> input, string pattern)static int Count(ReadOnlySpan<char> input, string pattern, RegexOptions options)static int Count(ReadOnlySpan<char> input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
EnumerateMatches | EnumerateMatches(value)EnumerateMatches([ :input = … ])EnumerateMatches([ :input = …, :startat = … ])EnumerateMatches([ :input = …, :pattern = … ])EnumerateMatches([ :input = …, :pattern = …, :options = … ]) | Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input)Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, int startat)static Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, string pattern)static Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, string pattern, RegexOptions options)static Regex.ValueMatchEnumerator EnumerateMatches(ReadOnlySpan<char> input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
EnumerateSplits | EnumerateSplits(value)EnumerateSplits([ :input = … ])EnumerateSplits([ :input = …, :count = … ])EnumerateSplits([ :input = …, :pattern = … ])EnumerateSplits([ :input = …, :count = …, :startat = … ]) | Regex.ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input)Regex.ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, int count)Regex.ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, int count, int startat)static Regex.ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, string pattern)static Regex.ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, string pattern, RegexOptions options)static Regex.ValueSplitEnumerator EnumerateSplits(ReadOnlySpan<char> input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
Escape | callMethod("Escape",[p1]) | static string Escape(string str) |
GetGroupNames | callMethod("GetGroupNames",[]) | string[] GetGroupNames() |
GetGroupNumbers | callMethod("GetGroupNumbers",[]) | int[] GetGroupNumbers() |
GroupNameFromNumber | callMethod("GroupNameFromNumber",[p1]) | string GroupNameFromNumber(int i) |
GroupNumberFromName | callMethod("GroupNumberFromName",[p1]) | int GroupNumberFromName(string name) |
IsMatch | IsMatch(value)IsMatch([ :input = … ])IsMatch([ :input = …, :startat = … ])IsMatch([ :input = …, :pattern = … ])IsMatch([ :input = …, :pattern = …, :options = … ]) | bool IsMatch(string input)bool IsMatch(string input, int startat)bool IsMatch(ReadOnlySpan<char> input)bool IsMatch(ReadOnlySpan<char> input, int startat)static bool IsMatch(string input, string pattern)static bool IsMatch(ReadOnlySpan<char> input, string pattern)static bool IsMatch(string input, string pattern, RegexOptions options)static bool IsMatch(ReadOnlySpan<char> input, string pattern, RegexOptions options)static bool IsMatch(string input, string pattern, RegexOptions options, TimeSpan matchTimeout)static bool IsMatch(ReadOnlySpan<char> input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
Match | Match(value)Match([ :input = … ])Match([ :input = …, :startat = … ])Match([ :input = …, :pattern = … ])Match([ :input = …, :beginning = …, :length = … ]) | Match Match(string input)Match Match(string input, int startat)Match Match(string input, int beginning, int length)static Match Match(string input, string pattern)static Match Match(string input, string pattern, RegexOptions options)static Match Match(string input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
Matches | Matches(value)Matches([ :input = … ])Matches([ :input = …, :startat = … ])Matches([ :input = …, :pattern = … ])Matches([ :input = …, :pattern = …, :options = … ]) | MatchCollection Matches(string input)MatchCollection Matches(string input, int startat)static MatchCollection Matches(string input, string pattern)static MatchCollection Matches(string input, string pattern, RegexOptions options)static MatchCollection Matches(string input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
Replace | Replace([ :input = …, :replacement = … ])Replace([ :input = …, :evaluator = … ])Replace([ :input = …, :replacement = …, :count = … ])Replace([ :input = …, :evaluator = …, :count = … ]) | string Replace(string input, string replacement)string Replace(string input, string replacement, int count)string Replace(string input, string replacement, int count, int startat)string Replace(string input, MatchEvaluator evaluator)string Replace(string input, MatchEvaluator evaluator, int count)string Replace(string input, MatchEvaluator evaluator, int count, int startat)static string Replace(string input, string pattern, string replacement)static string Replace(string input, string pattern, string replacement, RegexOptions options)static string Replace(string input, string pattern, string replacement, RegexOptions options, TimeSpan matchTimeout)static string Replace(string input, string pattern, MatchEvaluator evaluator)static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options)static string Replace(string input, string pattern, MatchEvaluator evaluator, RegexOptions options, TimeSpan matchTimeout) |
Split | Split(value)Split([ :input = … ])Split([ :input = …, :count = … ])Split([ :input = …, :pattern = … ])Split([ :input = …, :count = …, :startat = … ]) | string[] Split(string input)string[] Split(string input, int count)string[] Split(string input, int count, int startat)static string[] Split(string input, string pattern)static string[] Split(string input, string pattern, RegexOptions options)static string[] Split(string input, string pattern, RegexOptions options, TimeSpan matchTimeout) |
ToString | callMethod("ToString",[]) | string ToString() |
Unescape | callMethod("Unescape",[p1]) | static string Unescape(string str) |
RegexMatchTimeoutException class · extends TimeoutException
System.Text.RegularExpressions.RegexMatchTimeoutException · assembly System.Text.RegularExpressions
Implements: ISerializable
Constructors
new RegexMatchTimeoutException(string regexInput, string regexPattern, TimeSpan matchTimeout) |
new RegexMatchTimeoutException() |
new RegexMatchTimeoutException(string message) |
new RegexMatchTimeoutException(string message, Exception inner) |
Ring: new RegexMatchTimeoutException(args) uses one constructor; the others are chosen by the parameter names: new RegexMatchTimeoutException().@New([ :param = value ]) or dnNew("RegexMatchTimeoutException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Input | string | read | o.Input |
Pattern | string | read | o.Pattern |
MatchTimeout | TimeSpan | read | o.MatchTimeout |
Members of the base class are inherited.
RegexParseException class sealed · extends ArgumentException
System.Text.RegularExpressions.RegexParseException · assembly System.Text.RegularExpressions
Implements: ISerializable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Error | RegexParseError | read | o.Error |
Offset | int | read | o.Offset |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo info, StreamingContext context) |
Members of the base class are inherited.
RegexRunner class abstract
System.Text.RegularExpressions.RegexRunner · assembly System.Text.RegularExpressions
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CharInClass | CharInClass(p1,p2) | static bool CharInClass(char ch, string charClass) |
RegexRunnerFactory class abstract
System.Text.RegularExpressions.RegexRunnerFactory · assembly System.Text.RegularExpressions