From: Lorenzo Bettini (bettini_at_[hidden])
Date: 2007-04-27 12:08:34
Eric Niebler wrote:
> John Maddock wrote:
>> Lorenzo Bettini wrote:
>>> is there any plan to support more than 9 back references in the regex
>> You can have as many marked sub-expressions as you want, and refer to them
>> in the match_results structure once you have a match. What you can't do at
>> present is have a true back-reference say \12 in your expression. This is
>> basically a problem with the regex syntax, so if you know of a good syntax
>> extension that's already in use then it would trivial to support this.
> You could use xpressive, which handles this case. Any \ddd where d is a
> decimal digit is interpreted as a back-reference if
> - The backreference number is less than 10
> - The backreference number is less than or equal to the number of
> capturing groups seen so far.
> I believe that's perl's rule.
OK, thanks, I'll take a look at it... is xpressive compatible with
-- Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk