Ticket #1081 (closed Bugs: fixed)

Opened 10 years ago

Last modified 8 years ago

Empty string rejected as perl-style regex

Reported by: Christopher.Dunn@… Owned by: johnmaddock
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?


Change History

comment:1 Changed 8 years ago by johnmaddock

  • Status changed from new to closed
  • Resolution set to fixed

(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.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

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

Note: See TracTickets for help on using tickets.