in reply to regular xpression stuff
Just create regexp dynamically.@to_check=('bat','bbat','brat'); for (@to_check){ if (/^([bat])(?!\1)([bat])(?!\2)([bat])(?!\3)/){ # do something } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regular xpression stuff
by gt8073a (Hermit) on Jan 21, 2002 at 01:50 UTC | |
by Lucky (Scribe) on Jan 21, 2002 at 22:09 UTC |