in reply to Regex not working
Did you intend to match on the single quotes?
Maybe your regex should be be something like this :-
my $regex1 = qr/'(.*?):(.*?)'/;If there can not be more than one colon then using character classes may be better
my $r1 = qr/'([^:]*):([^']*)'/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex not working
by toolic (Bishop) on Sep 12, 2011 at 14:04 UTC |