http://qs321.pair.com?node_id=11116873


in reply to Re^3: Regex with Backslashes
in thread Regex with Backslashes

I understand that in a single quoted string '//' is the same as '/' and looking at the printed string

my $text = '1,This\, is a problem->\\,B,99'; print "$text\n"; > output 1,This\, is a problem->\,B,99

I can see this.

Whilst, as you point out, I can get a regex to work correctly, I still can't get the output that I need. '//' is the same as '/' so I am never going to be able to 'differentiate' the two, or have I still not grasped it!