in reply to Anything that is not ',' except .... RegEx question
Hi Win, you can try like this also,
use strict; while(<DATA>){ chomp; if(($_!~/,/i)||($_=~/,(?= (?:city of|country of))/i)){ print "$_\n" } }
Punitha
In Section
Seekers of Perl Wisdom