Hi Uri, On Wednesday 03 Nov 2010, Uri Guttman wrote:
> APK> $catch = $1 if ($string =~ /.*(E)\d*\b/); > > he didn't say there will be digits at the end. what if there aren't? his > example was just random text following the last E. It will match even if there are no digits at the end: input: $string = 'EEEEEEEfdgdfgfdEdffdgE' output: $catch = E input: $string = 'EEEEEEEfdgdfgfdEdffdgE123' output: $catch = E > also please learn to bottom post. people read emails top down. also > quote only the needed part and delete extra stuff like signatures. > > like i just did to the whole email you quoted. > Well, I hope that was an aberration as I usually do bottom postings only. Apologize for any inconvenience brought to you. -- Regards, Akhthar Parvez K http://www.sysadminguide.com/ UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity - Dennis Ritchie -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/