in reply to Re: RegExp, grabbing first name
in thread RegExp, grabbing first name

Thanks, but it didn't work as I expected:
I have to get the first name only no matter what the choices are:
my $string_1 = "SMITH, A DOE"; my $mystring_2 = "BULLOCK JOE A";
I am looking to get:

String 1 = DOE
String 2 = JOE

My post was not clear, sorry!
Thank you!