Opened 6 years ago

Closed 6 years ago

#12511 closed Bugs (worksforme)

Perl Regular Expression Syntax documentation: special character ] missing

Reported by: Simon Warta <simon@…> Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:

Description

I just noticed that in the list of special chars to be escaped, we have [ but not ]:

In Perl regular expressions, all characters match themselves except for the following special characters:

.[{}()\*+?|^$

Does this make sense?

http://www.boost.org/doc/libs/1_62_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

Change History (1)

comment:1 by John Maddock, 6 years ago

Resolution: worksforme
Status: newclosed

] is not special, except after a [.

I'll add a note to the docs to that effect.

Note: See TracTickets for help on using tickets.