in reply to Regular expression to match an A=B type string needs help in storing matched parts of string
If you are confident, just doing$string =~ /[^=]+='([^']+)'/;
is enough. It may not be 100 times faster, but it's less noise to look at.$string =~ /='([^']+)'/;
|
|---|