Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit 25434edf3e.
PrevUpHomeNext

Testing simple Perl matches (platform = Windows x64, compiler = GNU C++ version 11.4.0)

Table 15. Testing simple Perl matches (platform = Windows x64, compiler = GNU C++ version 11.4.0)

Expression
Text

boost 1.85

std::regex

boost::xpressive::cregex

([[:digit:]]{4}[- ]){3}[[:digit:]]{3,4}
1234-5678-1234-456

2.75
(297ns)

3.35
(362ns)

1.00
(108ns)

^([0-9]+)(\-| |$)(.*)$
100- this is a line of ftp response which contains a message string

2.60
(208ns)

17.80
(1424ns)

1.00
(80ns)

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\ ...
bob.smith@foo.tv

2.47
(428ns)

3.32
(574ns)

1.00
(173ns)

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\ ...
foo12@foo.edu

2.73
(412ns)

3.54
(535ns)

1.00
(151ns)

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\ ...
john@johnmaddock.co.uk

2.74
(469ns)

4.25
(727ns)

1.00
(171ns)

^[-+]?[[:digit:]]*\.?[[:digit:]]*$
+3.14159

2.55
(158ns)

4.98
(309ns)

1.00
(62ns)

^[-+]?[[:digit:]]*\.?[[:digit:]]*$
-3.14159

2.48
(151ns)

4.95
(302ns)

1.00
(61ns)

^[-+]?[[:digit:]]*\.?[[:digit:]]*$
123

2.03
(124ns)

4.38
(267ns)

1.00
(61ns)

^[[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}$
12/12/2001

2.66
(162ns)

4.67
(285ns)

1.00
(61ns)

^[[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}$
4/1/2001

2.07
(126ns)

4.36
(266ns)

1.00
(61ns)

^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
EH10 2QQ

2.08
(148ns)

3.72
(264ns)

1.00
(71ns)

^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
G1 1AA

2.17
(141ns)

3.82
(248ns)

1.00
(65ns)

^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
SW1 1ZZ

2.39
(160ns)

3.61
(242ns)

1.00
(67ns)

abc
abc

1.75
(77ns)

4.25
(187ns)

1.00
(44ns)



PrevUpHomeNext