Hi,
I have a string like this:
$string="Lake City 84132, USA. FAU - Carrell, D T AU - Carrell DT FAU - Emery, B R AU - Emery BR";
I want to extract AU and only its contents. The output should be like this:
AU - Carrell DT
AU - Emery BR
I tried like this:
if($string=~/\bAU\b(.*)/)
{
}
But other contents are coming with that again i have to separately write a regular expression.
How can i get the desired output??
My output should be (AU - Carrell DT AU - Emery BR)
Any suggestions ???
Regards
Vandhita