Mechanism for compiling and matching regular expressions.
Synopsis
Declared in <bdlpcre_regex.h>
class RegEx;
Description
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/).
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. |
|
Destroy this regular‐expression object. |
Free resources and put this object into the "unprepared" state. |
|
Return the evaluation recursion depth limit for this regular‐expression object. |
|
Return the flags from the most recent successful |
|
Return |
|
Return the explicitly configured JIT stack size, or 0. |
|
|
|
|
|
|
|
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 object. |
|
Return the 1‐based index of the named sub‐pattern, or ‐1. |
|
|
Declare that this type uses a |
Static Member Functions
Name |
Description |
Return the process‐wide default evaluation recursion depth limit. |
|
Return whether just‐in‐time compiling is supported on this platform. |
|
Set the process‐wide default evaluation recursion depth limit. |
Static Data Members
Name |
Description |
Value used to denote an invalid offset for match methods returning pairs. |
Created with MrDocs