while ( <DATA> ) { print if ( m/(?<!STOR)OMA$/ ); } __DATA__ OMA COMA STORAMA HISTOROMA PUMA MELANOMA STOROMA
where m/(?<!STOR)OMA$/ pretty much looks for a pattern exactly as you described.
-enlil
In reply to Re: regular expressions
by Enlil
in thread regular expressions
by asaf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |