Regular expression help.

Associate
Joined
1 Jun 2007
Posts
840
Im trying to write a regular expression which captures the away side in a team:
Exact sample:

"Hull City 0 - 0 Liverpool "
"Man Utd 4 - 0 Stoke City "
"West Ham 1 - 1 Man City "
"Wolves 2 - 1 Sunderland"

I want to match Liverpool, Stoke City, Man City, Sunderland.
There is whitespace before and after the words but no whitespace after Sunderland.

PS: I put quotes in just for OC website to show the whitespace, they are not in the
orginal sample.

Any help?
 
Back
Top Bottom