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