in reply to What does this code mean(Reg Exp)?

Do you know what $1 is? Well, \1 is just the same but within a regex. Well, now, why don't you give a peek into perlre?

Replies are listed 'Best First'.
Re^2: What does this code mean(Reg Exp)?
by reasonablekeith (Deacon) on Sep 27, 2005 at 10:38 UTC
    The clue was in the print statement. :-)

    and if you don't like pouring over online tutorials. "Mastering Regular Expressions" is a superb book.

    ---
    my name's not Keith, and I'm not reasonable.