Dave, > Both \1 and $1 refer to what is matched by the first set of parens in a > regex. AFAIK, the only difference between these two notation is that \1 > is used within the regex itself and $1 is used outside of the regex. Is > there any reason not to standardize these down to one notation (i.e., > eliminate one or the other)? I think this is fixable. The only real need for this at the moment is to overcome limitations in the order of expansion of regexes. RFCs 112, 166, 276... all depend on fixing this. If the regex compiler gets in before the expansion of the variables to make these work, it could handle $1 in all cases \1 can be retained for compatibility. Richard
- is \1 vs $1 a necessary distinction? Dave Storrs
- Re: is \1 vs $1 a necessary distinction? Jonathan Scott Duff
- Re: is \1 vs $1 a necessary distinction? Dave Storrs
- Re: is \1 vs $1 a necessary distinction? Randal L. Schwartz
- Re: is \1 vs $1 a necessary distinction? Bart Lateur
- Re: is \1 vs $1 a necessary distinction? Michael Maraist
- Re: is \1 vs $1 a necessary distinction? Uri Guttman
- Re: is \1 vs $1 a necessary distinction? Richard Proctor
- Re: is \1 vs $1 a necessary distinction? Dave Storrs
- Re: is \1 vs $1 a necessary distinction? Piers Cawley
- Re: is \1 vs $1 a necessary distincti... Dave Storrs
- Re: is \1 vs $1 a necessary dist... Piers Cawley
- Re: is \1 vs $1 a necessary distinction? Richard Proctor