Modify

Ticket #1081 (closed Bugs: fixed)

Opened 7 years ago

Last modified 5 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:

Description

"" 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

Change History

comment:1 Changed 5 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 [@ https://svn.boost.org/trac/boost/ticket/1081 #1081].

Fixes #1081.

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.