A regular expression.
More...
A regular expression.
This class creates and holds an internal data structure representing a regular expression. It also allows creating matchers. This class is thread-safe. Multiple matchers may operate simultanously on the same regular expression.
- Author
- Per Cederberg
- Version
- 1.5
PerCederberg.Grammatica.Runtime.RE.RegExp.RegExp |
( |
string |
pattern | ) |
|
|
inline |
Creates a new case-sensitive regular expression.
- Parameters
-
pattern | the regular expression pattern |
- Exceptions
-
PerCederberg.Grammatica.Runtime.RE.RegExp.RegExp |
( |
string |
pattern, |
|
|
bool |
ignoreCase |
|
) |
| |
|
inline |
Creates a new regular expression.
The regular expression can be either case-sensitive or case-insensitive.
- Parameters
-
pattern | the regular expression pattern |
ignoreCase | the character case ignore flag |
- Exceptions
-
- Since
- 1.5
Matcher PerCederberg.Grammatica.Runtime.RE.RegExp.Matcher |
( |
string |
str | ) |
|
|
inline |
Creates a new matcher for the specified string.
- Parameters
-
str | the string to work with |
- Returns
- the regular expresion matcher
Creates a new matcher for the specified look-ahead character input stream.
- Parameters
-
buffer | the character input buffer |
- Returns
- the regular expresion matcher
- Since
- 1.5
override string PerCederberg.Grammatica.Runtime.RE.RegExp.ToString |
( |
| ) |
|
|
inline |
Returns a string representation of the regular expression.
- Returns
- a string representation of the regular expression
The documentation for this class was generated from the following file:
- src/csharp/PerCederberg.Grammatica.Runtime.RE/RegExp.cs