Simplified syntax for (?:foo)?

Bug #655420 reported by marcog
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ibid
New
Wishlist
Unassigned

Bug Description

We often use "(?:foo)?" in our regular expressions. Since we started doing some preprocessing of them (e.g. " " => "\s+"), how about translating something like "{foo}" into "(?:foo)?"? Unfortunately we already use {} for {chunk}, so we might want to avoid the collision. But I'm sure we could find something else.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.