We don't bite newbies here... much | |
PerlMonks |
Re^3: Regex with Backslashesby tybalt89 (Monsignor) |
on May 17, 2020 at 19:35 UTC ( [id://11116869]=note: print w/replies, xml ) | Need Help?? |
No.
this output is correct, it is *not* a problem... For the last part of your comment If you would restate that as double-quoted strings it would look like this which is true, but not what you meant, you meant to say (in double-quoted strings) which you can and have done. In a single-quoted string, the backslash ONLY does quoting if it occurs before a ' or a \ otherwise it stands for itself. That's why '\,' and '\\,' actually represent the same string. Try looking at the printed string instead of the perl form of the string to see what you actually have.
In Section
Seekers of Perl Wisdom
|
|