Opened 11 years ago

Closed 9 years ago

#1081 closed Bugs (fixed)

Empty string rejected as perl-style regex

Reported by: Christopher.Dunn@… Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Severity: Problem
Keywords: perl empty string Cc:


"" is a valid Perl-style regular expression. It means "match anything". boost::regex throws an exception when this is compiled.

How difficult would it be to allow the empty string?

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by John Maddock

Resolution: fixed
Status: newclosed

(In [50374]) Empty expressions, and empty alternatives are now allowed when using the Perl regular expression syntax. This change has been added for Perl compatibility, when the new [syntax_option_type] ['no_empty_expressions] is set then the old behaviour is preserved and empty expressions are prohibited. This is issue [@ #1081].

Fixes #1081.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.