This class provides a mechanism for compiling and matching regular expressions. A regular expression approximately compatible with Perl 5.10 is compiled with the prepare method. Subsequently, strings are matched against the compiled (prepared) pattern using the overloaded match and matchRaw methods. Note that the underlying implementation uses the open‐source Perl Compatible Regular Expressions (PCRE2) library that was developed at the University of Cambridge (http://www.pcre.org/).
Synopsis
Declared in <bdlpcre_regex.h>
class RegEx;
Enums
Name |
Description |
Flags that may be supplied to |
|
Flags that may be supplied to |
|
Status codes distinguishing among results of match operations. |
Member Functions
Name |
Description |
|
Create a regular‐expression object in the "unprepared" state. Optionally specify a |
|
Destroy this regular‐expression object. |
Free resources used by this regular‐expression object and put this object into the "unprepared" state. This method has no effect if this object is already in the "unprepared" state. |
|
Return the evaluation recursion depth limit for this regular‐expression object. |
|
Return the flags that were supplied to the most recent successful call to the |
|
Return |
|
Return the size of the dynamically allocated JIT stack if it has been specified explicitly with the |
|
|
|
|
|
|
|
Return the number of sub‐patterns in the pattern held by this regular‐expression object ( |
|
Return a reference to the non‐modifiable pattern held by this regular‐expression object. The behavior is undefined unless |
|
|
|
|
|
|
|
Set the evaluation recursion depth limit for this regular‐expression object to the specified |
|
Return the 1‐based index of the sub‐pattern having the specified |
|
|
Declare that this type uses a |
Static Member Functions
Name |
Description |
Return the process‐wide default evaluation recursion depth limit. |
|
Return |
|
Set the process‐wide default evaluation recursion depth limit to the specified |
Static Data Members
Name |
Description |
Value used to denote an invalid offset for match methods returning pairs. |
Created with MrDocs