TextRegex TextRegex TextRegex TextRegex Class

Definition

Provides a regular expression to match all characters until the next less than (<) character.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class TextRegex : System::Text::RegularExpressions::Regex
public class TextRegex : System.Text.RegularExpressions.Regex
type TextRegex = class
    inherit Regex
Public Class TextRegex
Inherits Regex
Inheritance
TextRegexTextRegexTextRegexTextRegex

Remarks

The System.Web.RegularExpressions classes are used internally by the .NET Framework to parse ASP.NET pages.

Constructors

TextRegex() TextRegex() TextRegex() TextRegex()

Initializes a new instance of the TextRegex class.

TextRegex(TimeSpan) TextRegex(TimeSpan) TextRegex(TimeSpan) TextRegex(TimeSpan)

Initializes a new instance of the TextRegex class with a specified time-out value.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetGroupNames() GetGroupNames() GetGroupNames() GetGroupNames()

Returns an array of capturing group names for the regular expression.

(Inherited from Regex)
GetGroupNumbers() GetGroupNumbers() GetGroupNumbers() GetGroupNumbers()

Returns an array of capturing group numbers that correspond to group names in an array.

(Inherited from Regex)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
GroupNameFromNumber(Int32) GroupNameFromNumber(Int32) GroupNameFromNumber(Int32) GroupNameFromNumber(Int32)

Gets the group name that corresponds to the specified group number.

(Inherited from Regex)
GroupNumberFromName(String) GroupNumberFromName(String) GroupNumberFromName(String) GroupNumberFromName(String)

Returns the group number that corresponds to the specified group name.

(Inherited from Regex)
InitializeReferences() InitializeReferences() InitializeReferences() InitializeReferences()

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
IsMatch(String) IsMatch(String) IsMatch(String) IsMatch(String)

Indicates whether the regular expression specified in the Regex constructor finds a match in a specified input string.

(Inherited from Regex)
IsMatch(String, Int32) IsMatch(String, Int32) IsMatch(String, Int32) IsMatch(String, Int32)

Indicates whether the regular expression specified in the Regex constructor finds a match in the specified input string, beginning at the specified starting position in the string.

(Inherited from Regex)
Match(String) Match(String) Match(String) Match(String)

Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor.

(Inherited from Regex)
Match(String, Int32) Match(String, Int32) Match(String, Int32) Match(String, Int32)

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position in the string.

(Inherited from Regex)
Match(String, Int32, Int32) Match(String, Int32, Int32) Match(String, Int32, Int32) Match(String, Int32, Int32)

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position and searching only the specified number of characters.

(Inherited from Regex)
Matches(String) Matches(String) Matches(String) Matches(String)

Searches the specified input string for all occurrences of a regular expression.

(Inherited from Regex)
Matches(String, Int32) Matches(String, Int32) Matches(String, Int32) Matches(String, Int32)

Searches the specified input string for all occurrences of a regular expression, beginning at the specified starting position in the string.

(Inherited from Regex)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Replace(String, MatchEvaluator) Replace(String, MatchEvaluator) Replace(String, MatchEvaluator) Replace(String, MatchEvaluator)

In a specified input string, replaces all strings that match a specified regular expression with a string returned by a MatchEvaluator delegate.

(Inherited from Regex)
Replace(String, MatchEvaluator, Int32) Replace(String, MatchEvaluator, Int32) Replace(String, MatchEvaluator, Int32) Replace(String, MatchEvaluator, Int32)

In a specified input string, replaces a specified maximum number of strings that match a regular expression pattern with a string returned by a MatchEvaluator delegate.

(Inherited from Regex)
Replace(String, MatchEvaluator, Int32, Int32) Replace(String, MatchEvaluator, Int32, Int32) Replace(String, MatchEvaluator, Int32, Int32) Replace(String, MatchEvaluator, Int32, Int32)

In a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a string returned by a MatchEvaluator delegate.

(Inherited from Regex)
Replace(String, String) Replace(String, String) Replace(String, String) Replace(String, String)

In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string.

(Inherited from Regex)
Replace(String, String, Int32) Replace(String, String, Int32) Replace(String, String, Int32) Replace(String, String, Int32)

In a specified input string, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.

(Inherited from Regex)
Replace(String, String, Int32, Int32) Replace(String, String, Int32, Int32) Replace(String, String, Int32, Int32) Replace(String, String, Int32, Int32)

In a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.

(Inherited from Regex)
Split(String) Split(String) Split(String) Split(String)

Splits an input string into an array of substrings at the positions defined by a regular expression pattern specified in the Regex constructor.

(Inherited from Regex)
Split(String, Int32) Split(String, Int32) Split(String, Int32) Split(String, Int32)

Splits an input string a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor.

(Inherited from Regex)
Split(String, Int32, Int32) Split(String, Int32, Int32) Split(String, Int32, Int32) Split(String, Int32, Int32)

Splits an input string a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor. The search for the regular expression pattern starts at a specified character position in the input string.

(Inherited from Regex)
ToString() ToString() ToString() ToString()

Returns the regular expression pattern that was passed into the Regex constructor.

(Inherited from Regex)
UseOptionC() UseOptionC() UseOptionC() UseOptionC()

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
UseOptionR() UseOptionR() UseOptionR() UseOptionR()

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)

Fields

capnames capnames capnames capnames

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
caps caps caps caps

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
capsize capsize capsize capsize

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
capslist capslist capslist capslist

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
factory factory factory factory

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
internalMatchTimeout internalMatchTimeout internalMatchTimeout internalMatchTimeout

The maximum amount of time that can elapse in a pattern-matching operation before the operation times out.

(Inherited from Regex)
pattern pattern pattern pattern

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)
roptions roptions roptions roptions

Used by a Regex object generated by the CompileToAssembly method.

(Inherited from Regex)

Properties

CapNames CapNames CapNames CapNames

Gets or sets a dictionary that maps named capturing groups to their index values.

(Inherited from Regex)
Caps Caps Caps Caps

Gets or sets a dictionary that maps numbered capturing groups to their index values.

(Inherited from Regex)
MatchTimeout MatchTimeout MatchTimeout MatchTimeout

Gets the time-out interval of the current instance.

(Inherited from Regex)
Options Options Options Options

Gets the options that were passed into the Regex constructor.

(Inherited from Regex)
RightToLeft RightToLeft RightToLeft RightToLeft

Gets a value that indicates whether the regular expression searches from right to left.

(Inherited from Regex)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data necessary to deserialize the current Regex object.

(Inherited from Regex)

Applies to

See also