|
Boost : |
From: Lorenzo Bettini (bettini_at_[hidden])
Date: 2007-04-26 12:11:48
John Maddock wrote:
> Lorenzo Bettini wrote:
>> Hi
>>
>> is there any plan to support more than 9 back references in the regex
>> library?
>
> You can have as many marked sub-expressions as you want, and refer to them
yes I'm already using this
> 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
and that's what I'd need: I need to build a long regex made up by many
alternatives (each of one is a subexpression), and thus, I reach the
back-reference limitation quite easily.
> 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.
actually, I've only read by googling that there are some regular
expression libraries providing more than 9 subexpressions, but I saw no
pointer to such libraries.
thanks
Lorenzo
-- 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