Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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.
Namespace: System.Text.RegularExpressions
Assembly: System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)
Syntax
'Declaration
Public Function IsMatch ( _
search As String, _
i As Integer _
) As Boolean
public bool IsMatch(
string search,
int i
)
public:
bool IsMatch(
String^ search,
int i
)
member IsMatch :
search:string *
i:int -> bool
public function IsMatch(
search : String,
i : int
) : boolean
Parameters
- search
Type: System. . :: . .String
The string to search for a match.
- i
Type: System. . :: . .Int32
The character position at which to start the search.
Return Value
Type: System. . :: . .Boolean
true if the regular expression finds a match; otherwise, false.
Remarks
The IsMatch method is typically used to validate a string or to ensure that a string conforms to a particular pattern without retrieving that string for subsequent manipulation. If you want to determine whether one or more strings match a regular expression pattern and then retrieve them for subsequent manipulation, call the Match or Matches method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.