diff --git a/doc/html/boost_regex/background_information.html b/doc/html/boost_regex/background_information.html index ecf49934..45d793e6 100644 --- a/doc/html/boost_regex/background_information.html +++ b/doc/html/boost_regex/background_information.html @@ -3,11 +3,12 @@
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- "Unmatched [ or |
@@ -1779,7 +1779,10 @@
diff --git a/doc/html/boost_regex/background_information/performance.html b/doc/html/boost_regex/background_information/performance.html
index 1732fd58..be5ed7c2 100644
--- a/doc/html/boost_regex/background_information/performance.html
+++ b/doc/html/boost_regex/background_information/performance.html
@@ -1,13 +1,14 @@
-
diff --git a/doc/html/boost_regex/background_information/redist.html b/doc/html/boost_regex/background_information/redist.html
index 4e3434ce..fb7917f6 100644
--- a/doc/html/boost_regex/background_information/redist.html
+++ b/doc/html/boost_regex/background_information/redist.html
@@ -1,13 +1,15 @@
-
diff --git a/doc/html/boost_regex/background_information/standards.html b/doc/html/boost_regex/background_information/standards.html
index 910d0d3a..8efaff79 100644
--- a/doc/html/boost_regex/background_information/standards.html
+++ b/doc/html/boost_regex/background_information/standards.html
@@ -1,13 +1,14 @@
-
diff --git a/doc/html/boost_regex/background_information/thread_safety.html b/doc/html/boost_regex/background_information/thread_safety.html
index 86f73d7f..d76d568d 100644
--- a/doc/html/boost_regex/background_information/thread_safety.html
+++ b/doc/html/boost_regex/background_information/thread_safety.html
@@ -1,13 +1,15 @@
-
diff --git a/doc/html/boost_regex/captures.html b/doc/html/boost_regex/captures.html
index af64a95d..5d984fed 100644
--- a/doc/html/boost_regex/captures.html
+++ b/doc/html/boost_regex/captures.html
@@ -1,13 +1,14 @@
-
- In Boost.Regex all these are accessible via the boost::match_results<IteratorType> m; @@ -166,7 +167,7 @@
|
@@ -190,7 +191,7 @@
-
|
@@ -202,26 +203,26 @@
-
|
-
- In Boost.Regex each sub-expression match is represented by a
-
+
+
|
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- |
- |
- |
- |
- |
- |
- |
@@ -482,7 +483,7 @@ |
- |
@@ -492,34 +493,34 @@ |
basic_regex(const charT* p1, const charT* p2, flag_type f = regex_constants::normal);
- Requires: p1 and p2
- are not null pointers, p1 < p2
.
+ Requires: p1 and p2
+ are not null pointers, p1 < p2.
- Throws: bad_expression if [p1,p2) is not
- a valid regular expression, unless the flag no_except
+ Throws: bad_expression if [p1,p2) is not
+ a valid regular expression, unless the flag no_except
is set in f.
- Effects: Constructs an object of class
- basic_regex
;
+ Effects: Constructs an object of class
+ basic_regex;
the object's internal finite state machine is constructed from the regular
expression contained in the sequence of characters [p1,p2), and interpreted
- according the option flags
+ according the option flags
specified in f.
Table 3. Postconditions for basic_regex construction
-
- |
- |
- |
- |
- |
- |
- |
@@ -588,7 +589,7 @@ |
- |
@@ -598,33 +599,33 @@ |
basic_regex(const charT* p, size_type len, flag_type f);
- Requires: p shall not
- be a null pointer, len <
- max_size()
.
+ Requires: p shall not
+ be a null pointer, len <
+ max_size().
- Throws: bad_expression
if p
- is not a valid regular expression, unless the flag no_except
+ Throws: bad_expression if p
+ is not a valid regular expression, unless the flag no_except
is set in f.
- Effects: Constructs an object of class
- basic_regex
;
+ Effects: Constructs an object of class
+ basic_regex;
the object's internal finite state machine is constructed from the regular
expression contained in the sequence of characters [p, p+len), and interpreted
according the option flags specified in f.
Table 4. Postconditions for basic_regex construction
-
- |
- |
- |
@@ -669,19 +670,19 @@ |
- |
- |
- |
@@ -693,7 +694,7 @@ |
- |
@@ -703,16 +704,16 @@ |
basic_regex(const basic_regex& e);
- Effects: Constructs an object of class
- basic_regex
+ Effects: Constructs an object of class
+ basic_regex
as a copy of the object e.
@@ -723,21 +724,21 @@ flag_type f = regex_constants::normal);
- Throws: bad_expression
if s
- is not a valid regular expression, unless the flag no_except
+ Throws: bad_expression if s
+ is not a valid regular expression, unless the flag no_except
is set in f.
- Effects: Constructs an object of class
- basic_regex
;
+ Effects: Constructs an object of class
+ basic_regex;
the object's internal finite state machine is constructed from the regular
expression contained in the string s, and interpreted
- according to the option
+ according to the option
flags specified in f.
Table 5. Postconditions for basic_regex construction
-
- |
- |
- |
- |
- |
@@ -794,7 +795,7 @@ |
- |
@@ -806,7 +807,7 @@ |
- |
@@ -816,9 +817,9 @@ |
template <class ForwardIterator> @@ -826,21 +827,21 @@ flag_type f = regex_constants::normal);
- Throws: bad_expression
if the sequence [first,
- last) is not a valid regular expression, unless the flag no_except
+ Throws: bad_expression if the sequence [first,
+ last) is not a valid regular expression, unless the flag no_except
is set in f.
- Effects: Constructs an object of class
- basic_regex
;
+ Effects: Constructs an object of class
+ basic_regex;
the object's internal finite state machine is constructed from the regular
expression contained in the sequence of characters [first, last), and interpreted
- according to the option
+ according to the option
flags specified in f.
Table 6. Postconditions for basic_regex construction
-
- |
- |
- |
- |
- |
- |
- |
@@ -909,7 +910,7 @@ |
- |
@@ -919,15 +920,15 @@ |
basic_regex& operator=(const basic_regex& e);
- Effects: Returns the result of assign(e.str(), e.flags())
.
+ Effects: Returns the result of assign(e.str(), e.flags()).
@@ -935,11 +936,11 @@ basic_regex& operator=(const charT* ptr);
- Requires: p shall not + Requires: p shall not be a null pointer.
- Effects: Returns the result of assign(ptr)
.
+ Effects: Returns the result of assign(ptr).
@@ -948,7 +949,7 @@ basic_regex& operator=(const basic_string<charT, ST, SA>& p);
- Effects: Returns the result of assign(p)
.
+ Effects: Returns the result of assign(p).
@@ -956,7 +957,7 @@ const_iterator begin() const;
- Effects: Returns a starting iterator to + Effects: Returns a starting iterator to a sequence of characters representing the regular expression.
@@ -965,7 +966,7 @@ const_iterator end() const;
- Effects: Returns termination iterator to + Effects: Returns termination iterator to a sequence of characters representing the regular expression.
@@ -974,7 +975,7 @@ size_type size() const;
- Effects: Returns the length of the sequence + Effects: Returns the length of the sequence of characters representing the regular expression.
@@ -983,7 +984,7 @@ size_type max_size() const;
- Effects: Returns the maximum length of the + Effects: Returns the maximum length of the sequence of characters representing the regular expression.
@@ -992,7 +993,7 @@ bool empty() const;
- Effects: Returns true if the object does + Effects: Returns true if the object does not contain a valid regular expression, otherwise false.
@@ -1001,7 +1002,7 @@ unsigned mark_count() const;
- Effects: Returns the number of marked sub-expressions + Effects: Returns the number of marked sub-expressions within the regular expresion.
@@ -1010,7 +1011,7 @@ basic_regex& assign(const basic_regex& that);
- Effects: Returns assign(that.str(), that.flags())
.
+ Effects: Returns assign(that.str(), that.flags()).
@@ -1018,7 +1019,7 @@ basic_regex& assign(const charT* ptr, flag_type f = regex_constants::normal);
- Effects: Returns assign(string_type(ptr), f)
.
+ Effects: Returns assign(string_type(ptr), f).
@@ -1026,7 +1027,7 @@ basic_regex& assign(const charT* ptr, unsigned int len, flag_type f);
- Effects: Returns assign(string_type(ptr, len), f)
.
+ Effects: Returns assign(string_type(ptr, len), f).
@@ -1036,22 +1037,22 @@ flag_type f = regex_constants::normal);
- Throws: bad_expression
if s
- is not a valid regular expression, unless the flag no_except
+ Throws: bad_expression if s
+ is not a valid regular expression, unless the flag no_except
is set in f.
- Returns: *this. + Returns: *this.
- Effects: Assigns the regular expression + Effects: Assigns the regular expression contained in the string s, interpreted according the - option flags specified + option flags specified in f.
Table 7. Postconditions for basic_regex::assign
-
- |
- |
- |
- |
- |
@@ -1108,7 +1109,7 @@ |
- |
@@ -1120,7 +1121,7 @@ |
- |
@@ -1130,9 +1131,9 @@ |
template <class InputIterator> @@ -1140,12 +1141,12 @@ flag_type f = regex_constants::normal);
- Requires: The type InputIterator
+ Requires: The type InputIterator
corresponds to the Input Iterator requirements
(24.1.1).
- Effects: Returns assign(string_type(first, last), f)
.
+ Effects: Returns assign(string_type(first, last), f).
@@ -1153,9 +1154,9 @@ flag_type flags() const;
- Effects: Returns a copy of the regular
+ Effects: Returns a copy of the regular
expression syntax flags that were passed to the object's constructor,
- or the last call to assign
.
+ or the last call to assign.
@@ -1163,7 +1164,7 @@ int status() const;
- Effects: Returns zero if the expression + Effects: Returns zero if the expression contains a valid regular expression, otherwise an error code. This member function is retained for use in environments that cannot use exception handling.
@@ -1173,7 +1174,7 @@ basic_string<charT> str() const;- Effects: Returns a copy of the character + Effects: Returns a copy of the character sequence passed to the object's constructor, or the last call to assign.
@@ -1182,9 +1183,9 @@ int compare(basic_regex& e)const;
- Effects: If flags() == e.flags()
then returns str().compare(e.str())
,
- otherwise returns flags()
- - e.flags()
.
+ Effects: If flags() == e.flags() then returns str().compare(e.str()),
+ otherwise returns flags()
+ - e.flags().
@@ -1192,14 +1193,14 @@ locale_type imbue(locale_type l);
- Effects: Returns the result of traits_inst.imbue(l)
where
- traits_inst
is a (default
- initialized) instance of the template parameter traits
- stored within the object. Calls to imbue
+ Effects: Returns the result of traits_inst.imbue(l) where
+ traits_inst is a (default
+ initialized) instance of the template parameter traits
+ stored within the object. Calls to imbue
invalidate any currently contained regular expression.
- Postcondition: empty() == true
.
+ Postcondition: empty() == true.
@@ -1207,8 +1208,8 @@ locale_type getloc() const;
- Effects: Returns the result of traits_inst.getloc()
- where traits_inst
is a (default
+ Effects: Returns the result of traits_inst.getloc()
+ where traits_inst is a (default
initialized) instance of the template parameter traits stored within the
object.
- Effects: Swaps the contents of the two regular + Effects: Swaps the contents of the two regular expressions.
- Postcondition: *this
contains the regular expression that
+ Postcondition: *this contains the regular expression that
was in e, e contains the regular
- expression that was in *this
.
+ expression that was in *this.
- Complexity: constant time. + Complexity: constant time.
![]() |
Note |
---|---|
- Comparisons between | |
+ Comparisons between basic_regex objects are provided
on an experimental basis: please note that these are not present in the
Technical
Report on C++ Library Extensions, so use with care if you are writing
- code that may need to be ported to other implementations of |
@@ -1250,8 +1251,8 @@ const basic_regex<charT, traits>& rhs);
- Effects: Returns lhs.compare(rhs)
- == 0
.
+ Effects: Returns lhs.compare(rhs)
+ == 0.
@@ -1261,8 +1262,8 @@ const basic_regex<charT, traits>& rhs);
- Effects: Returns lhs.compare(rhs)
- != 0
.
+ Effects: Returns lhs.compare(rhs)
+ != 0.
@@ -1272,8 +1273,8 @@ const basic_regex<charT, traits>& rhs);
- Effects: Returns lhs.compare(rhs)
- < 0
.
+ Effects: Returns lhs.compare(rhs)
+ < 0.
@@ -1283,8 +1284,8 @@ const basic_regex<charT, traits>& rhs);
- Effects: Returns lhs.compare(rhs)
- <= 0
.
+ Effects: Returns lhs.compare(rhs)
+ <= 0.
@@ -1294,8 +1295,8 @@ const basic_regex<charT, traits>& rhs);
- Effects: Returns lhs.compare(rhs)
- >= 0
.
+ Effects: Returns lhs.compare(rhs)
+ >= 0.
@@ -1305,15 +1306,15 @@ const basic_regex<charT, traits>& rhs);
- Effects: Returns lhs.compare(rhs)
- > 0
.
+ Effects: Returns lhs.compare(rhs)
+ > 0.
![]() |
Note | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The basic_regex stream inserter is provided on an experimental basis, and outputs the textual representation of the expression to the stream. |
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
The regular expression algorithms (and iterators) take all require a Bidirectional-Iterator.
- | Copyright © 2007 John Maddock | +
The following additional requirements are strictly optional, however in
- order for basic_regex
+ order for basic_regex
to take advantage of these additional interfaces, all of the following
- requirements must be met; basic_regex
will detect the presence
- or absense of the member boost_extensions_tag
+ requirements must be met; basic_regex will detect the presence
+ or absense of the member boost_extensions_tag
and configure itself appropriately.
Returns a character d such that: for any character d that is to
- be considered equivalent to c then |
@@ -529,9 +531,9 @@
- Behaves as follows: if
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces.html b/doc/html/boost_regex/ref/deprecated_interfaces.html
index 07045e17..7d3f52f1 100644
--- a/doc/html/boost_regex/ref/deprecated_interfaces.html
+++ b/doc/html/boost_regex/ref/deprecated_interfaces.html
@@ -3,11 +3,13 @@
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html b/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html
index ba37fb11..ea155135 100644
--- a/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html
+++ b/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html
@@ -1,12 +1,14 @@
-
The high level wrapper class RegEx is now deprecated and does not form part of the regular expression standardization proposal. This type still @@ -136,7 +138,7 @@
|
-
@@ -149,7 +151,7 @@
|
|
-
@@ -162,40 +164,40 @@
|
|
-
|
Constructs an instance of RegEx, setting the expression to c,
if icase is true then matching is insensitive
- to case, otherwise it is sensitive to case. Throws
|
-
|
Constructs an instance of RegEx, setting the expression to s,
if icase is true then matching is insensitive
- to case, otherwise it is sensitive to case. Throws
|
-
@@ -207,68 +209,68 @@
|
|
-
|
- Assignment operator, equivalent to calling
|
-
|
- Assignment operator, equivalent to calling
|
-
|
Sets the current expression to p, if icase
is true then matching is insensitive to case, otherwise it is sensitive
- to case. Throws
|
-
|
Sets the current expression to s, if icase
is true then matching is insensitive to case, otherwise it is sensitive
- to case. Throws
|
-
@@ -280,17 +282,17 @@
|
|
-
|
Attempts to match the current expression against the text p
- using the match flags flags - see
|
-
|
Attempts to match the current expression against the text s
- using the
|
-
|
@@ -336,17 +338,17 @@
Attempts to find a match for the current expression somewhere in
- the text p using the
|
-
|
@@ -354,19 +356,19 @@
Attempts to find a match for the current expression somewhere in
- the text s using the
|
-
|
Finds all matches of the current expression in the text p
- using the
|
-
|
Finds all matches of the current expression in the text s
- using the
|
-
|
Finds all matches of the current expression in the text p
- using the
|
-
|
Finds all matches of the current expression in the text s
- using the
|
-
|
Finds all matches of the current expression in the text p
- using the
|
-
|
Finds all matches of the current expression in the text s
- using the
|
-
|
@@ -513,20 +515,20 @@
Finds all matches of the current expression in the files files
- using the
- May throw an exception derived from
|
-
|
@@ -551,20 +553,20 @@
Finds all matches of the current expression in the files files
- using the @@ -543,7 +545,7 @@ Returns the total number of matches found.
- May throw an exception derived from
|
-
|
@@ -586,20 +588,20 @@
Searches files to find all those which contain at least one match
- of the current expression using the
- May throw an exception derived from
|
-
|
@@ -623,14 +625,14 @@
Searches files to find all those which contain at least one match
- of the current expression using the @@ -615,7 +617,7 @@ Returns the total number of files found.
- May throw an exception derived from
|
-
@@ -643,22 +645,22 @@
If copy is true then all unmatched sections
of input are copied unchanged to output, if the flag format_first_only
is set then only the first occurance of the pattern found is replaced.
- Returns the new string. See also format
- string syntax, and |
match_flag_type .
+ Returns the new string. See also format
+ string syntax, and match_flag_type.
|
-
@@ -671,19 +673,19 @@
If copy is true then all unmatched sections
of input are copied unchanged to output, if the flag format_first_only
is set then only the first occurance of the pattern found is replaced.
- Returns the new string. See also format
- string syntax, and |
match_flag_type .
+ Returns the new string. See also format
+ string syntax, and match_flag_type.
|
-
@@ -704,17 +706,17 @@
|
|
-
|
Returns the position of what matched sub-expression i.
- If
|
-
|
- Returns the length of what matched sub-expression i. If
|
-
@@ -755,23 +757,23 @@
|
|
-
|
Returns the line on which the match occurred, indexes start from
- 1 not zero, if no match occurred then returns
|
-
@@ -785,14 +787,14 @@
|
|
-
|
Returns a copy of what matched sub-expression i.
- If
|
-
|
- Returns
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html b/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html
index 28ef42c8..559d3a9e 100644
--- a/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html
+++ b/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html
@@ -1,13 +1,15 @@
-
- Format flags are described under The format string syntax (and available options) is described more fully - under format strings. + under format strings.
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html b/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html
index 33fd7e4e..13d2a5bf 100644
--- a/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html
+++ b/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html
@@ -1,13 +1,16 @@
-
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html b/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html
index dd07bf04..ce02c4a1 100644
--- a/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html
+++ b/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html
@@ -1,13 +1,16 @@
-
diff --git a/doc/html/boost_regex/ref/error_type.html b/doc/html/boost_regex/ref/error_type.html
index d2deb78b..b362c115 100644
--- a/doc/html/boost_regex/ref/error_type.html
+++ b/doc/html/boost_regex/ref/error_type.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_regex/ref/match_flag_type.html b/doc/html/boost_regex/ref/match_flag_type.html
index e0ebccba..bf5a7e95 100644
--- a/doc/html/boost_regex/ref/match_flag_type.html
+++ b/doc/html/boost_regex/ref/match_flag_type.html
@@ -1,13 +1,14 @@
-
diff --git a/doc/html/boost_regex/ref/match_results.html b/doc/html/boost_regex/ref/match_results.html
index 086ba614..2e6fca10 100644
--- a/doc/html/boost_regex/ref/match_results.html
+++ b/doc/html/boost_regex/ref/match_results.html
@@ -1,13 +1,13 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings.html b/doc/html/boost_regex/ref/non_std_strings.html
index 62ad63d5..5d2f434d 100644
--- a/doc/html/boost_regex/ref/non_std_strings.html
+++ b/doc/html/boost_regex/ref/non_std_strings.html
@@ -1,13 +1,15 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/icu.html b/doc/html/boost_regex/ref/non_std_strings/icu.html
index 337c084b..83799cc1 100644
--- a/doc/html/boost_regex/ref/non_std_strings/icu.html
+++ b/doc/html/boost_regex/ref/non_std_strings/icu.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/icu/intro.html b/doc/html/boost_regex/ref/non_std_strings/icu/intro.html
index 5e719f6f..87fe0850 100644
--- a/doc/html/boost_regex/ref/non_std_strings/icu/intro.html
+++ b/doc/html/boost_regex/ref/non_std_strings/icu/intro.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html
index 0691e820..5d4ae06e 100644
--- a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html
+++ b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html
index 031f60af..f3c9352c 100644
--- a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html
+++ b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html
index 54c37692..6f42cbf9 100644
--- a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html
+++ b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html
index 3298ba2f..f17f4620 100644
--- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html
+++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html
index 76d42e1b..0d05bf1c 100644
--- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html
+++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html
index 0923a1f9..017ca050 100644
--- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html
+++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html
index 04c5c41e..beabcfcf 100644
--- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html
+++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html
@@ -1,13 +1,16 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html
index 7ddd4f7b..5c4f3b44 100644
--- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html
+++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html
index 8edd6c09..452240b8 100644
--- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html
+++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html
@@ -1,13 +1,17 @@
-
diff --git a/doc/html/boost_regex/ref/posix.html b/doc/html/boost_regex/ref/posix.html
index c2bd5a77..18acf970 100644
--- a/doc/html/boost_regex/ref/posix.html
+++ b/doc/html/boost_regex/ref/posix.html
@@ -1,13 +1,14 @@
-
-
-
+
+
|
- Compiles modern regular expressions. Equivalent to |
@@ -217,12 +217,12 @@
Compiles basic (obsolete) regular expression syntax. Equivalent to
- |
@@ -346,8 +346,8 @@
- A shortcut for awk-like behavior: |
@@ -359,8 +359,8 @@
- A shortcut for grep like behavior: |
@@ -372,8 +372,8 @@
- A shortcut for egrep like behavior: |
@@ -381,10 +381,10 @@
-
regerror takes the following parameters, it maps an error code to a human readable string: @@ -469,10 +469,10 @@
-
regexec finds the first occurrence of expression e within string buf. If len is non-zero then *m is filled in with what matched @@ -539,18 +539,21 @@
-
- regfree
frees all the memory
+ regfree frees all the memory
that was allocated by regcomp.
- | Copyright © 2007 John Maddock | +
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -224,44 +223,44 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- The same as the start of the match found: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- True if the prefix did not match an empty string: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- The same as the end of the match found: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -273,20 +272,20 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- True if the suffix did not match an empty string: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -299,7 +298,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -311,7 +310,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -324,12 +323,12 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers
- Effects: returns @@ -395,17 +394,17 @@ regex_iterator& operator++();
- Effects: moves the iterator to the next
+ Effects: moves the iterator to the next
match in the underlying sequence, or the end of sequence iterator if none
if found. When the last match found matched a zero length string, then the
-
- Throws: - Returns: *this. + Returns: *this. @@ -421,11 +420,11 @@ regex_iterator operator++(int);
- Effects: constructs a copy result of - Returns: result. + Returns: result. @@ -442,15 +441,15 @@ regex_constants::match_flag_type m = regex_constants::match_default);
- Effects: returns an iterator that enumerates
+ Effects: returns an iterator that enumerates
all occurences of expression e in text p
- using
-
+
+
|
- | Copyright © 2007 John Maddock | +
![]() |
Important |
---|---|
- Note that the result is true only if the expression matches the whole of the input sequence. If you want to search
- for an expression somewhere within the sequence then use | |
+ Note that the result is true only if the expression matches the whole of the input sequence. If you want to search + for an expression somewhere within the sequence then use regex_search. If you want to match + a prefix of the character string then use regex_search with the flag match_continuous set. |
template <class BidirectionalIterator, class Allocator, class charT, class traits> bool regex_match(BidirectionalIterator first, BidirectionalIterator last, @@ -93,19 +92,19 @@ match_flag_type flags = match_default);
- Requires: Type BidirectionalIterator meets + Requires: Type BidirectionalIterator meets the requirements of a Bidirectional Iterator (24.1.4).
- Effects: Determines whether there is an
+ Effects: Determines whether there is an
exact match between the regular expression e, and all
of the character sequence [first, last), parameter flags
- (see match_flag_type
)
+ (see match_flag_type)
is used to control how the expression is matched against the character sequence.
Returns true if such a match exists, false otherwise.
- Throws: std::runtime_error
+ Throws: std::runtime_error
if the complexity of matching the expression against an N character string
begins to exceed O(N2), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -113,7 +112,7 @@
in non-recursive mode).
- Postconditions: If the function returns + Postconditions: If the function returns false, then the effect on parameter m is undefined, otherwise the effects on parameter m are given in the table: @@ -139,127 +138,127 @@
- m.size()
+ m.size()
- e.mark_count()
+ e.mark_count()
- m.empty()
+ m.empty()
- false
+ false
- m.prefix().first
+ m.prefix().first
- first
+ first
- m.prefix().last
+ m.prefix().last
- first
+ first
- m.prefix().matched
+ m.prefix().matched
- false
+ false
- m.suffix().first
+ m.suffix().first
- last
+ last
- m.suffix().last
+ m.suffix().last
- last
+ last
- m.suffix().matched
+ m.suffix().matched
- false
+ false
- m[0].first
+ m[0].first
- first
+ first
- m[0].second
+ m[0].second
- last
+ last
- m[0].matched
+ m[0].matched
- m[n].first
+ m[n].first
- For all integers n < m.size()
, the start of the sequence that
+ For all integers n < m.size(), the start of the sequence that
matched sub-expression n. Alternatively, if
sub-expression n did not participate in the
- match, then last
.
+ match, then last.
- m[n].second
+ m[n].second
- For all integers n < m.size()
, the end of the sequence that matched
+ For all integers n < m.size(), the end of the sequence that matched
sub-expression n. Alternatively, if sub-expression
- n did not participate in the match, then last
.
+ n did not participate in the match, then last.
- m[n].matched
+ m[n].matched
- For all integers n < m.size()
, true if sub-expression n
+ For all integers n < m.size(), true if sub-expression n
participated in the match, false otherwise.
- Effects: Behaves "as if" by constructing
- an instance of match_results<BidirectionalIterator> what
,
- and then returning the result of regex_match(first, last, what, e,
- flags)
.
+ Effects: Behaves "as if" by constructing
+ an instance of match_results<BidirectionalIterator> what,
+ and then returning the result of regex_match(first, last, what, e,
+ flags).
template <class charT, class Allocator, class traits> @@ -332,9 +331,9 @@ match_flag_type flags = match_default);
- Effects: Returns the result of regex_match(str, str
+ Effects: Returns the result of regex_match(str, str
+ char_traits<charT>::length(str),
- m, e, flags)
.
+ m, e, flags).
template <class ST, class SA, class Allocator, @@ -345,7 +344,7 @@ match_flag_type flags = match_default);
- Effects: Returns the result of regex_match(s.begin(), s.end(), m, e, flags)
.
+ Effects: Returns the result of regex_match(s.begin(), s.end(), m, e, flags).
template <class charT, class traits> @@ -354,9 +353,9 @@ match_flag_type flags = match_default);
- Effects: Returns the result of regex_match(str, str
+ Effects: Returns the result of regex_match(str, str
+ char_traits<charT>::length(str),
- e, flags)
.
+ e, flags).
template <class ST, class SA, class charT, class traits> @@ -365,12 +364,12 @@ match_flag_type flags = match_default);
- Effects: Returns the result of regex_match(s.begin(), s.end(), e, flags)
.
+ Effects: Returns the result of regex_match(s.begin(), s.end(), e, flags).
The following example processes an ftp response:
@@ -409,7 +408,10 @@- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -242,7 +241,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -254,7 +253,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
@@ -267,12 +266,12 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
- For all integers |
@@ -315,9 +314,9 @@
match_flag_type flags = match_default);
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
Specifies that the grammar recognized by the regular expression - engine is the same as that used by POSIX + engine is the same as that used by POSIX basic regular expressions in IEEE Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions and Headers, Section 9, Regular Expressions (FWD.1). @@ -107,12 +111,13 @@ |
Specifies that the grammar recognized by the regular expression
- engine is the same as that used by POSIX utility - That is to say, the same as POSIX + That is to say, the same as POSIX basic syntax, but with the newline character acting as an alternation character; the expression is treated as a newline separated list of alternatives. @@ -132,7 +137,8 @@ |
- Specifies that the grammar recognised is the superset of the POSIX-Basic syntax + Specifies that the grammar recognised is the superset of the POSIX-Basic syntax used by the emacs program. |
@@ -199,7 +205,7 @@
- Specifies that character ranges of the form |
@@ -258,7 +265,7 @@
- When set then character classes such as |
@@ -294,8 +301,9 @@
When set this makes the escape character ordinary inside lists,
- so that |
- When set then |
@@ -350,7 +358,7 @@
- When set then |
@@ -368,7 +376,7 @@
- Prevents |
@@ -378,7 +386,10 @@
- | Copyright © 2007 John Maddock | +
- Specifies that character ranges of the form |
When set this makes the escape character ordinary inside lists,
- so that |
- Prevents |
@@ -333,7 +340,10 @@
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- Specifies that character ranges of the form |
@@ -286,7 +290,7 @@
- Prevents |
@@ -325,9 +329,9 @@
Normally whether Boost.Regex will match "." against a
- newline character is determined by the match flag |
@@ -346,9 +350,9 @@
Normally whether Boost.Regex will match "." against a
- newline character is determined by the match flag |
@@ -376,7 +380,10 @@
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
![]() |
Caution |
---|---|
+ | |
The POSIX standard does not support back-references for "extended" regular expressions, this is a compatible extension to that standard. |
- The |
operator will match either
- of its arguments, so for example: abc|def
will
+ The | operator will match either
+ of its arguments, so for example: abc|def will
match either "abc" or "def".
- Parenthesis can be used to group alternations, for example: ab(d|ef)
+ Parenthesis can be used to group alternations, for example: ab(d|ef)
will match either of "abd" or "abef".
A character set is a bracket-expression starting with [ and ending with ], it defines a set of characters, and matches any single character that is @@ -245,72 +248,73 @@ cab
A bracket expression may contain any combination of the following:
-
- For example [abc]
, will match any of the characters 'a', 'b',
+ For example [abc], will match any of the characters 'a', 'b',
or 'c'.
- For example [a-c]
+ For example [a-c]
will match any single character in the range 'a' to 'c'. By default, for
POSIX-Extended regular expressions, a character x is
within the range y to z, if it
collates within that range; this results in locale specific behavior . This
- behavior can be turned off by unsetting the collate
- option flag - in
+ behavior can be turned off by unsetting the collate
+ option flag - in
which case whether a character appears within a range is determined by comparing
the code points of the characters only.
If the bracket-expression begins with the ^ character, then it matches the
- complement of the characters it contains, for example [^a-c]
matches any character that is not in the
- range a-c
.
+ complement of the characters it contains, for example [^a-c] matches any character that is not in the
+ range a-c.
- An expression of the form [[:name:]]
- matches the named character class "name", for example [[:lower:]]
matches any lower case character. See
- character class names.
+ An expression of the form [[:name:]]
+ matches the named character class "name", for example [[:lower:]] matches any lower case character. See
+ character class names.
- An expression of the form [[.col.]
matches
+ An expression of the form [[.col.] matches
the collating element col. A collating element is any
single character, or any sequence of characters that collates as a single
unit. Collating elements may also be used as the end point of a range, for
- example: [[.ae.]-c]
+ example: [[.ae.]-c]
matches the character sequence "ae", plus any single character
in the range "ae"-c, assuming that "ae" is treated as
a single collating element in the current locale.
Collating elements may be used in place of escapes (which are not normally
- allowed inside character sets), for example [[.^.]abc]
would
+ allowed inside character sets), for example [[.^.]abc] would
match either one of the characters 'abc^'.
- As an extension, a collating element may also be specified via its symbolic name, for example: + As an extension, a collating element may also be specified via its symbolic name, for example:
[[.NUL.]] @@ -318,35 +322,35 @@ cabmatches a NUL character.
-- +
++ Equivalence classes: -
- An expression of the form
-[[=col=]]
, + An expression of the form [[=col=]], matches any character or collating element whose primary sort key is the same as that for collating element col, as with colating - elements the name col may be a symbolic + elements the name col may be a symbolic name. A primary sort key is one that ignores case, accentation, or - locale-specific tailorings; so for example[[=a=]]
matches + locale-specific tailorings; so for example [[=a=]] matches any of the characters: a, À, Á, Â, Ã, Ä, Å, A, à, á, â, ã, ä and å. Unfortunately implementation of this is reliant on the platform's collation and localisation support; this feature can not be relied upon to work portably across all platforms, or even all locales on one platform.- +
++ Combinations: -
All of the above can be combined in one character set declaration, for example: -
-[[:digit:]a-c[.NUL.]]
. + [[:digit:]a-c[.NUL.]].- +
++ Escapes -
The POSIX standard defines no escape sequences for POSIX-Extended regular expressions, except that: @@ -361,7 +365,7 @@ cab
[\^]
+ class declaration; so [\^]
will match either a literal '\' or a '^'.
The following escape sequences are all synonyms for single characters:
@@ -552,17 +556,17 @@ cab
Matches the single character which has the symbolic name name. For
- example \\N{newline}
matches the single character \n.
+ example \\N{newline} matches the single character \n.
Any escaped character x, if x is the name of a character class shall match any character that is a member @@ -593,130 +597,130 @@ cab
- \d
+ \d
- [[:digit:]]
+ [[:digit:]]
- \l
+ \l
- [[:lower:]]
+ [[:lower:]]
- \s
+ \s
- [[:space:]]
+ [[:space:]]
- \u
+ \u
- [[:upper:]]
+ [[:upper:]]
- \w
+ \w
- [[:word:]]
+ [[:word:]]
- \D
+ \D
- [^[:digit:]]
+ [^[:digit:]]
- \L
+ \L
- [^[:lower:]]
+ [^[:lower:]]
- \S
+ \S
- [^[:space:]]
+ [^[:space:]]
- \U
+ \U
- [^[:upper:]]
+ [^[:upper:]]
- \W
+ \W
- [^[:word:]]
+ [^[:word:]]
The character property names in the following table are all equivalent to the names used in character classes. @@ -748,7 +752,7 @@ cab
- \pX
+ \pX
- [[:X:]]
+ [[:X:]]
- \p{Name}
+ \p{Name}
- [[:Name:]]
+ [[:Name:]]
- \PX
+ \PX
- [^[:X:]]
+ [^[:X:]]
- \P{Name}
+ \P{Name}
- [^[:Name:]]
+ [^[:Name:]]
- For example \pd
- matches any "digit" character, as does \p{digit}
.
+ For example \pd
+ matches any "digit" character, as does \p{digit}.
The following escape sequences match the boundaries of words:
@@ -847,7 +851,7 @@ cab
- \<
+ \<
- \>
+ \>
- \b
+ \b
- \B
+ \B
The following match only at buffer boundaries: a "buffer" in this context is the whole of the input text that is being matched against (note @@ -949,7 +953,7 @@ cab
- \A
+ \A
- \z
+ \z
- \Z
+ \Z
Matches an optional sequence of newlines at the end of a buffer:
- equivalent to the regular expression \n*\z
+ equivalent to the regular expression \n*\z
- The sequence \G
+ The sequence \G
matches only at the end of the last match found, or at the start of the text
being matched if no previous match was found. This escape useful if you're
iterating over the matches contained within a text, and you want each subsequence
match to start where the last one ended.
- The escape sequence \Q
+ The escape sequence \Q
begins a "quoted sequence": all the subsequent characters are treated
- as literals, until either the end of the regular expression or \E
is found.
- For example the expression: \Q\*+\Ea+
would match either of:
+ as literals, until either the end of the regular expression or \E is found.
+ For example the expression: \Q\*+\Ea+ would match either of:
\*+a \*+aaa-
- |
@@ -1051,7 +1055,7 @@ cab |
- |
@@ -1063,40 +1067,40 @@ cab |
Any other escape sequence matches the character that is escaped, for example \@ matches a literal '@'.
-The order of precedence for of operators is as follows:
[==]
- [::] [..]
+ Collation-related bracket symbols [==]
+ [::] [..]
\
+ Escaped characters \
[]
+ Character set (bracket expression) []
()
+ Grouping ()
*
- + ? {m,n}
+ Single-character-ERE duplication *
+ + ? {m,n}
|
+ Alternation |
When there is more that one way to match a regular expression, the "best" - possible match is obtained using the leftmost-longest + possible match is obtained using the leftmost-longest rule.
-
- When an expression is compiled with the flag
- egrep
set, then the
+ When an expression is compiled with the flag
+ egrep set, then the
expression is treated as a newline separated list of POSIX-Extended
expressions, a match is found if any of the expressions in the list
match, for example:
@@ -1141,13 +1146,13 @@ cab
As its name suggests, this behavior is consistent with the Unix utility
- egrep
, and with grep when
+ egrep, and with grep when
used with the -E option.
In addition to the POSIX-Extended features the escape character is special inside a character class @@ -1158,23 +1163,26 @@ cab specification are required to be supported - however Boost.Regex supports these by default anyway.
-
- There are a variety
- of flags that may be combined with the extended
- and egrep
options when constructing
- the regular expression, in particular note that the newline_alt
option alters the syntax,
- while the collate
, nosubs
- and icase
options
+ There are a variety
+ of flags that may be combined with the extended
+ and egrep options when constructing
+ the regular expression, in particular note that the newline_alt option alters the syntax,
+ while the collate, nosubs
+ and icase options
modify how the case and locale sensitivity are to be applied.
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
@@ -531,7 +535,7 @@
- |
@@ -544,7 +548,7 @@ |
- |
@@ -557,7 +561,7 @@ |
- |
@@ -570,7 +574,7 @@ |
- |
@@ -583,23 +587,23 @@ |
- |
- Matches the single character which has the symbolic
- name name. For example |
Any escaped character x, if x is the name of a character class shall match any character that is a member @@ -630,133 +634,134 @@
- \d
+ \d
- [[:digit:]]
+ [[:digit:]]
- \l
+ \l
- [[:lower:]]
+ [[:lower:]]
- \s
+ \s
- [[:space:]]
+ [[:space:]]
- \u
+ \u
- [[:upper:]]
+ [[:upper:]]
- \w
+ \w
- [[:word:]]
+ [[:word:]]
- \D
+ \D
- [^[:digit:]]
+ [^[:digit:]]
- \L
+ \L
- [^[:lower:]]
+ [^[:lower:]]
- \S
+ \S
- [^[:space:]]
+ [^[:space:]]
- \U
+ \U
- [^[:upper:]]
+ [^[:upper:]]
- \W
+ \W
- [^[:word:]]
+ [^[:word:]]
The character property names in the following table are all equivalent to - the names used in character + the names used in character classes.
- |
@@ -796,14 +801,14 @@ |
- |
- |
@@ -813,14 +818,14 @@ |
- |
- |
@@ -830,14 +835,14 @@ |
- |
- |
@@ -847,42 +852,42 @@ |
- |
- For example \pd
- matches any "digit" character, as does \p{digit}
.
+ For example \pd
+ matches any "digit" character, as does \p{digit}.
The following escape sequences match the boundaries of words:
- \<
Matches the start of a
+ \< Matches the start of a
word.
- \>
Matches the end of a word.
+ \> Matches the end of a word.
- \b
+ \b
Matches a word boundary (the start or end of a word).
- \B
+ \B
Matches only when not at a word boundary.
The following match only at buffer boundaries: a "buffer" in this context is the whole of the input text that is being matched against (note @@ -902,106 +907,106 @@
\Z Matches an optional sequence of newlines at the end of a buffer: equivalent
- to the regular expression \n*\z
+ to the regular expression \n*\z
- The sequence \G
+ The sequence \G
matches only at the end of the last match found, or at the start of the text
being matched if no previous match was found. This escape useful if you're
iterating over the matches contained within a text, and you want each subsequence
match to start where the last one ended.
- The escape sequence \Q
+ The escape sequence \Q
begins a "quoted sequence": all the subsequent characters are treated
as literals, until either the end of the regular expression or \E is found.
- For example the expression: \Q\*+\Ea+
would match either of:
+ For example the expression: \Q\*+\Ea+ would match either of:
\*+a \*+aaa-
- \C
+ \C
Matches a single code point: in Boost regex this has exactly the same effect
- as a "." operator. \X
Matches a combining character sequence:
+ as a "." operator. \X Matches a combining character sequence:
that is any non-combining character followed by a sequence of zero or more
combining characters.
Any other escape sequence matches the character that is escaped, for example \@ matches a literal '@'.
-
Perl-specific extensions to the regular expression syntax all start with
- (?
.
+ (?.
- (?# ...
- )
is treated as a comment, it's contents
+ (?# ...
+ ) is treated as a comment, it's contents
are ignored.
- (?imsx-imsx ... )
alters
+ (?imsx-imsx ... ) alters
which of the perl modifiers are in effect within the pattern, changes take
effect from the point that the block is first seen and extend to any enclosing
- )
. Letters before a '-' turn
+ ). Letters before a '-' turn
that perl modifier on, letters afterward, turn it off.
- (?imsx-imsx:pattern)
+ (?imsx-imsx:pattern)
applies the specified modifiers to pattern only.
- (?:pattern)
lexically groups pattern, without generating
+ (?:pattern) lexically groups pattern, without generating
an additional sub-expression.
- (?=pattern)
consumes zero characters, only if pattern
+ (?=pattern) consumes zero characters, only if pattern
matches.
- (?!pattern)
consumes zero characters, only if pattern
+ (?!pattern) consumes zero characters, only if pattern
does not match.
@@ -1016,45 +1021,45 @@
could be used to validate the password.
-
- (?<=pattern)
consumes zero characters, only if pattern
+ (?<=pattern) consumes zero characters, only if pattern
could be matched against the characters preceding the current position (pattern
must be of fixed length).
- (?<!pattern)
consumes zero characters, only if pattern
+ (?<!pattern) consumes zero characters, only if pattern
could not be matched against the characters preceding the current position
(pattern must be of fixed length).
- (?>pattern)
pattern is matched
+ (?>pattern) pattern is matched
independently of the surrounding patterns, the expression will never backtrack
into pattern. Independent sub-expressions are typically
used to improve performance; only the best possible match for pattern will
be considered, if this doesn't allow the expression as a whole to match then
no match is found at all.
- (?(condition)yes-pattern|no-pattern)
attempts to match yes-pattern
+ (?(condition)yes-pattern|no-pattern) attempts to match yes-pattern
if the condition is true, otherwise attempts to match
no-pattern.
- (?(condition)yes-pattern)
+ (?(condition)yes-pattern)
attempts to match yes-pattern if the condition
is true, otherwise fails.
The order of precedence for of operators is as follows:
[==]
- [::] [..]
+ Collation-related bracket symbols [==]
+ [::] [..]
\
+ Escaped characters \
[]
+ Character set (bracket expression) []
()
+ Grouping ()
*
- + ? {m,n}
+ Single-character-ERE duplication *
+ + ? {m,n}
If you view the regular expression as a directed (possibly cyclic) graph, then the best match found is the first match found by a depth-first-search @@ -1113,7 +1118,8 @@ Alternatively:
- The best match found is the leftmost + The best match found is the leftmost match, with individual elements matched as follows;
- |
@@ -1150,8 +1156,8 @@ |
- |
@@ -1164,7 +1170,7 @@ |
- |
@@ -1176,7 +1182,7 @@ |
- |
@@ -1188,7 +1194,7 @@ |
- |
@@ -1200,16 +1206,16 @@ |
- |
- The same as |
@@ -1217,16 +1223,16 @@
- |
- The same as |
@@ -1234,7 +1240,7 @@
- |
@@ -1246,7 +1252,7 @@ |
- |
@@ -1259,7 +1265,7 @@ |
- |
@@ -1271,8 +1277,8 @@ |
- |
@@ -1284,51 +1290,57 @@ |
- The options
- normal
, ECMAScript
,
- JavaScript
and JScript
are all synonyms for perl
.
+ The options
+ normal, ECMAScript,
+ JavaScript and JScript are all synonyms for perl.
- There are a variety
- of flags that may be combined with the perl
+ There are a variety
+ of flags that may be combined with the perl
option when constructing the regular expression, in particular note that
- the newline_alt
option alters
- the syntax, while the collate
,
- nosubs
and icase
options modify how the case and locale
+ the newline_alt option alters
+ the syntax, while the collate,
+ nosubs and icase options modify how the case and locale
sensitivity are to be applied.
- The perl smix
modifiers can
- either be applied using a (?smix-smix)
prefix to the regular expression, or with
- one of the regex-compile
- time flags no_mod_m
, mod_x
, mod_s
,
- and no_mod_s
.
+ The perl smix modifiers can
+ either be applied using a (?smix-smix) prefix to the regular expression, or with
+ one of the regex-compile
+ time flags no_mod_m, mod_x, mod_s,
+ and no_mod_s.
- | Copyright © 2007 John Maddock | +
- | Copyright © 2007 John Maddock | +
Last revised: October 06, 2007 at 17:41:11 GMT |
-+ | Last revised: November 07, 2007 at 02:57:53 GMT |
+