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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Regex with Backslashes
by tybalt89 (Monsignor) on May 18, 2020 at 00:20 UTC | |
by anita2R (Scribe) on May 18, 2020 at 19:17 UTC | |
Re^5: Regex with Backslashes
by AnomalousMonk (Archbishop) on May 17, 2020 at 21:17 UTC | |
by anita2R (Scribe) on May 17, 2020 at 22:38 UTC | |
by AnomalousMonk (Archbishop) on May 17, 2020 at 23:13 UTC | |
by anita2R (Scribe) on May 18, 2020 at 12:24 UTC |
In Section
Seekers of Perl Wisdom