Searches an input span for all occurrences of a regular expression and returns the number of matches.
Count(String)Searches an input string for all occurrences of a regular expression and returns the number of matches.
Count(ReadOnlySpan<Char>, Int32)Searches an input span for all occurrences of a regular expression and returns the number of matches.
Count(ReadOnlySpan<Char>, String)Searches an input span for all occurrences of a regular expression and returns the number of matches.
Count(String, String)Searches an input string for all occurrences of a regular expression and returns the number of matches.
Count(ReadOnlySpan<Char>, String, RegexOptions)Searches an input span for all occurrences of a regular expression and returns the number of matches.
Count(String, String, RegexOptions)Searches an input string for all occurrences of a regular expression and returns the number of matches.
Count(ReadOnlySpan<Char>, String, RegexOptions, TimeSpan)Searches an input span for all occurrences of a regular expression and returns the number of matches.
Count(String, String, RegexOptions, TimeSpan)Searches an input string for all occurrences of a regular expression and returns the number of matches.
Count(ReadOnlySpan<Char>)Searches an input span for all occurrences of a regular expression and returns the number of matches.
public:
int Count(ReadOnlySpan<char> input);
public int Count(ReadOnlySpan<char> input);
member this.Count : ReadOnlySpan<char> -> int
Public Function Count (input As ReadOnlySpan(Of Char)) As Integer
Parameters Returns
The number of matches.
Count(String)Searches an input string for all occurrences of a regular expression and returns the number of matches.
public:
int Count(System::String ^ input);
public int Count(string input);
member this.Count : string -> int
Public Function Count (input As String) As Integer
Parameters
The string to search for a match.
ReturnsThe number of matches.
Exceptions Count(ReadOnlySpan<Char>, Int32)Searches an input span for all occurrences of a regular expression and returns the number of matches.
public:
int Count(ReadOnlySpan<char> input, int startat);
public int Count(ReadOnlySpan<char> input, int startat);
member this.Count : ReadOnlySpan<char> * int -> int
Public Function Count (input As ReadOnlySpan(Of Char), startat As Integer) As Integer
Parameters
The zero-based character position at which to start the search.
ReturnsThe number of matches.
Count(ReadOnlySpan<Char>, String)Searches an input span for all occurrences of a regular expression and returns the number of matches.
public:
static int Count(ReadOnlySpan<char> input, System::String ^ pattern);
public static int Count(ReadOnlySpan<char> input, string pattern);
static member Count : ReadOnlySpan<char> * string -> int
Public Shared Function Count (input As ReadOnlySpan(Of Char), pattern As String) As Integer
Parameters
The regular expression pattern to match.
ReturnsThe number of matches.
ExceptionsA regular expression parsing error occurred.
Count(String, String)Searches an input string for all occurrences of a regular expression and returns the number of matches.
public:
static int Count(System::String ^ input, System::String ^ pattern);
public static int Count(string input, string pattern);
static member Count : string * string -> int
Public Shared Function Count (input As String, pattern As String) As Integer
Parameters
The string to search for a match.
The regular expression pattern to match.
ReturnsThe number of matches.
Exceptionsinput
or pattern
is null
.
A regular expression parsing error occurred.
Count(ReadOnlySpan<Char>, String, RegexOptions)Searches an input span for all occurrences of a regular expression and returns the number of matches.
public:
static int Count(ReadOnlySpan<char> input, System::String ^ pattern, System::Text::RegularExpressions::RegexOptions options);
public static int Count(ReadOnlySpan<char> input, string pattern, System.Text.RegularExpressions.RegexOptions options);
static member Count : ReadOnlySpan<char> * string * System.Text.RegularExpressions.RegexOptions -> int
Public Shared Function Count (input As ReadOnlySpan(Of Char), pattern As String, options As RegexOptions) As Integer
Parameters
The regular expression pattern to match.
A bitwise combination of the enumeration values that specify options for matching.
ReturnsThe number of matches.
Exceptionsoptions
is not a valid bitwise combination of RegexOptions values.
A regular expression parsing error occurred.
Count(String, String, RegexOptions)Searches an input string for all occurrences of a regular expression and returns the number of matches.
public:
static int Count(System::String ^ input, System::String ^ pattern, System::Text::RegularExpressions::RegexOptions options);
public static int Count(string input, string pattern, System.Text.RegularExpressions.RegexOptions options);
static member Count : string * string * System.Text.RegularExpressions.RegexOptions -> int
Public Shared Function Count (input As String, pattern As String, options As RegexOptions) As Integer
Parameters
The string to search for a match.
The regular expression pattern to match.
A bitwise combination of the enumeration values that specify options for matching.
ReturnsThe number of matches.
Exceptionsinput
or pattern
is null
.
options
is not a valid bitwise combination of RegexOptions values.
A regular expression parsing error occurred.
Count(ReadOnlySpan<Char>, String, RegexOptions, TimeSpan)Searches an input span for all occurrences of a regular expression and returns the number of matches.
public:
static int Count(ReadOnlySpan<char> input, System::String ^ pattern, System::Text::RegularExpressions::RegexOptions options, TimeSpan matchTimeout);
public static int Count(ReadOnlySpan<char> input, string pattern, System.Text.RegularExpressions.RegexOptions options, TimeSpan matchTimeout);
static member Count : ReadOnlySpan<char> * string * System.Text.RegularExpressions.RegexOptions * TimeSpan -> int
Public Shared Function Count (input As ReadOnlySpan(Of Char), pattern As String, options As RegexOptions, matchTimeout As TimeSpan) As Integer
Parameters
The regular expression pattern to match.
A bitwise combination of the enumeration values that specify options for matching.
ReturnsThe number of matches.
Exceptionsoptions
is not a valid bitwise combination of RegexOptions values, or matchTimeout
is negative, zero, or greater than approximately 24 days.
A regular expression parsing error occurred.
Count(String, String, RegexOptions, TimeSpan)Searches an input string for all occurrences of a regular expression and returns the number of matches.
public:
static int Count(System::String ^ input, System::String ^ pattern, System::Text::RegularExpressions::RegexOptions options, TimeSpan matchTimeout);
public static int Count(string input, string pattern, System.Text.RegularExpressions.RegexOptions options, TimeSpan matchTimeout);
static member Count : string * string * System.Text.RegularExpressions.RegexOptions * TimeSpan -> int
Public Shared Function Count (input As String, pattern As String, options As RegexOptions, matchTimeout As TimeSpan) As Integer
Parameters
The string to search for a match.
The regular expression pattern to match.
A bitwise combination of the enumeration values that specify options for matching.
ReturnsThe number of matches.
Exceptionsinput
or pattern
is null
.
options
is not a valid bitwise combination of RegexOptions values, or matchTimeout
is negative, zero, or greater than approximately 24 days.
A regular expression parsing error occurred.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4