RingDotNetfor Ring

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

NameTypeAccessIn Ring
Indexintreado.Index
Lengthintreado.Length
Valuestringreado.Value
ValueSpanReadOnlySpan<char>reado.ValueSpan

Methods

MethodRing call.NET overloads
ToStringcallMethod("ToString",[])string ToString()
CaptureCollection class

System.Text.RegularExpressions.CaptureCollection · assembly System.Text.RegularExpressions

Implements: IEnumerable, IList, ICollection

Properties and fields

NameTypeAccessIn Ring
IsReadOnlyboolreado.IsReadOnly
Countintreado.Count
IsSynchronizedboolreado.IsSynchronized
SyncRootobjectreado.SyncRoot

Indexer

o.Item(int i) → Capture

Methods

MethodRing call.NET overloads
CopyToCopyTo(p1,p2)void CopyTo(Array array, int arrayIndex)
void CopyTo(Capture[] array, int arrayIndex)
GetEnumeratorcallMethod("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

NameTypeAccessIn Ring
Patternstringreado.Pattern
OptionsRegexOptionsreado.Options
MatchTimeoutMillisecondsintreado.MatchTimeoutMilliseconds
CultureNamestringreado.CultureName

Members of the base class are inherited.

Group class · extends Capture

System.Text.RegularExpressions.Group · assembly System.Text.RegularExpressions

Properties and fields

NameTypeAccessIn Ring
Successboolreado.Success
Namestringreado.Name
CapturesCaptureCollectionreado.Captures

Methods

MethodRing call.NET overloads
SynchronizedSynchronized(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

NameTypeAccessIn Ring
IsReadOnlyboolreado.IsReadOnly
Countintreado.Count
IsSynchronizedboolreado.IsSynchronized
SyncRootobjectreado.SyncRoot
KeysIEnumerable<string>reado.Keys
ValuesIEnumerable<Group>reado.Values

Indexer

o.Item(int groupnum) → Group

Methods

MethodRing call.NET overloads
ContainsKeycallMethod("ContainsKey",[p1])bool ContainsKey(string key)
CopyToCopyTo(p1,p2)void CopyTo(Array array, int arrayIndex)
void CopyTo(Group[] array, int arrayIndex)
GetEnumeratorcallMethod("GetEnumerator",[])IEnumerator GetEnumerator()
TryGetValueTryGetValue(p1)bool TryGetValue(string key, out Group value)
Match class · extends Group

System.Text.RegularExpressions.Match · assembly System.Text.RegularExpressions

Properties and fields

NameTypeAccessIn Ring
GroupsGroupCollectionreado.Groups
EmptyMatchread · statico.Empty

Methods

MethodRing call.NET overloads
NextMatchcallMethod("NextMatch",[])Match NextMatch()
ResultcallMethod("Result",[p1])string Result(string replacement)
SynchronizedSynchronized(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

NameTypeAccessIn Ring
IsReadOnlyboolreado.IsReadOnly
Countintreado.Count
IsSynchronizedboolreado.IsSynchronized
SyncRootobjectreado.SyncRoot

Indexer

o.Item(int i) → Match

Methods

MethodRing call.NET overloads
CopyToCopyTo(p1,p2)void CopyTo(Array array, int arrayIndex)
void CopyTo(Match[] array, int arrayIndex)
GetEnumeratorcallMethod("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

NameTypeAccessIn Ring
OptionsRegexOptionsreado.Options
RightToLeftboolreado.RightToLeft
MatchTimeoutTimeSpanreado.MatchTimeout
CacheSizeintread, write · statico.CacheSize o.CacheSize = v
InfiniteMatchTimeoutTimeSpanread · statico.InfiniteMatchTimeout

Methods

MethodRing call.NET overloads
CompileToAssemblyCompileToAssembly([ :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)
CountCount(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)
EnumerateMatchesEnumerateMatches(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)
EnumerateSplitsEnumerateSplits(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)
EscapecallMethod("Escape",[p1])static string Escape(string str)
GetGroupNamescallMethod("GetGroupNames",[])string[] GetGroupNames()
GetGroupNumberscallMethod("GetGroupNumbers",[])int[] GetGroupNumbers()
GroupNameFromNumbercallMethod("GroupNameFromNumber",[p1])string GroupNameFromNumber(int i)
GroupNumberFromNamecallMethod("GroupNumberFromName",[p1])int GroupNumberFromName(string name)
IsMatchIsMatch(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)
MatchMatch(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)
MatchesMatches(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)
ReplaceReplace([ :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)
SplitSplit(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)
ToStringcallMethod("ToString",[])string ToString()
UnescapecallMethod("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

NameTypeAccessIn Ring
Inputstringreado.Input
Patternstringreado.Pattern
MatchTimeoutTimeSpanreado.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

NameTypeAccessIn Ring
ErrorRegexParseErrorreado.Error
Offsetintreado.Offset

Methods

MethodRing call.NET overloads
GetObjectDataGetObjectData(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

MethodRing call.NET overloads
CharInClassCharInClass(p1,p2)static bool CharInClass(char ch, string charClass)
RegexRunnerFactory class abstract

System.Text.RegularExpressions.RegexRunnerFactory · assembly System.Text.RegularExpressions