$data = "Part Time - Weekend Receptionist - Barton le Clay - Barton-le-Clay (near Luton)"; $data = "Part-Time Weekend Day Veterinary Nurse - Milton Keynes"; $data = "Receptionist - Barton-le-Clay (near Luton)"; $data = "Full Time - Veterinary Nurse - Glasgow Referral - Glasgow"; #### $location = $1 if ($data =~ /-(.*)/i); $location = $1 if ($location =~ /-(.*)/i);