Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TextRegex Class

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

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

System.Object
  System.Text.RegularExpressions.Regex
    System.Web.RegularExpressions.TextRegex

Namespace:  System.Web.RegularExpressions
Assembly:  System.Web.RegularExpressions (in System.Web.RegularExpressions.dll)
public class TextRegex : Regex

The TextRegex type exposes the following members.

  NameDescription
Public methodTextRegex()Initializes a new instance of the TextRegex class.
Public methodTextRegex(TimeSpan)Initializes a new instance of the TextRegex class with a specified time-out value.
Top
  NameDescription
Public propertyMatchTimeoutGets the time-out interval of the current instance. (Inherited from Regex.)
Public propertyOptionsGets the options that were passed into the Regex constructor. (Inherited from Regex.)
Public propertyRightToLeftGets a value that indicates whether the regular expression searches from right to left. (Inherited from Regex.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetGroupNamesReturns an array of capturing group names for the regular expression. (Inherited from Regex.)
Public methodGetGroupNumbersReturns an array of capturing group numbers that correspond to group names in an array. (Inherited from Regex.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGroupNameFromNumberGets the group name that corresponds to the specified group number. (Inherited from Regex.)
Public methodGroupNumberFromNameReturns the group number that corresponds to the specified group name. (Inherited from Regex.)
Protected methodInitializeReferencesInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Public methodIsMatch(String)Indicates whether the regular expression specified in the Regex constructor finds a match in a specified input string. (Inherited from Regex.)
Public methodIsMatch(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.)
Public methodMatch(String)Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor. (Inherited from Regex.)
Public methodMatch(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.)
Public methodMatch(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.)
Public methodMatches(String)Searches the specified input string for all occurrences of a regular expression. (Inherited from Regex.)
Public methodMatches(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.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodReplace(String, String)In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string. (Inherited from Regex.)
Public methodReplace(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.)
Public methodReplace(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.)
Public methodReplace(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.)
Public methodReplace(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.)
Public methodReplace(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.)
Public methodSplit(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.)
Public methodSplit(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.)
Public methodSplit(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.)
Public methodToStringReturns the regular expression pattern that was passed into the Regex constructor. (Inherited from Regex.)
Protected methodUseOptionCInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected methodUseOptionRInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Top
  NameDescription
Protected fieldcapnamesInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected fieldcapsInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected fieldcapsizeInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected fieldcapslistInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected fieldfactoryInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected fieldinternalMatchTimeoutInfrastructure. The maximum amount of time that can elapse in a pattern-matching operation before the operation times out. (Inherited from Regex.)
Protected fieldpatternInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Protected fieldroptionsInfrastructure. Used by a Regex object generated by the CompileToAssembly method. (Inherited from Regex.)
Top
  NameDescription
Explicit interface implemetationPrivate methodISerializable.GetObjectDataInfrastructure. Populates a SerializationInfo object with the data necessary to deserialize the current Regex object. (Inherited from Regex.)
Top

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

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.