On 13 July 2010 18:16, Shawn H Corey <shawnhco...@gmail.com> wrote: > Because [] define a character set; everything inside it is a character. > That means it does not expand \1.
That's not entirely correct. Character classes recognize variables, escaped characters and some other regexp notation, but not \1 back-references -- Erez Observations, not opinions -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/