|XP is just a number|
Re: Difference between $1 and \1.by LanX (Abbot)
|on Dec 27, 2012 at 11:38 UTC||Need Help??|
> Can anyone explain this behaviour ?
Google finds plenty of them by entering your title:
Now what are your problems left?
Within the matching part of regexes $1 can't be used for your purpose!
It's still bound to the match of the last regex:
And regexes are older than Perl, \1 was the usual way to address first match, but variables with $-sigils belong to the syntax of scripting languages like Perl.