P is for Practical | |
PerlMonks |
Re: Regex, queryby Ratazong (Monsignor) |
on Jan 24, 2013 at 15:55 UTC ( [id://1015190]=note: print w/replies, xml ) | Need Help?? |
It works for me. Are you sure there is a whitespace after E123456? If you are sure that the REF is the last element in the input, you might want to use a greedy capture instead: change (.*?) to (.*) Alternatively, you could append a whitespace to your input before applying the regex ($reqtext .= " ";) HTH, Rata
In Section
Seekers of Perl Wisdom
|
|