|
|
| XP is just a number | |
| PerlMonks |
Re: Regexp: Match anything except a certain wordby SamCG (Hermit) |
| on Apr 21, 2006 at 13:07 UTC ( [id://544948]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Sounds like you want a negative look-ahead? Aren't those expressed something like $test=~/<a.+?(?!target).+?>/;?
Sort of guessing at the form, but I think that's what you're after... update: this has a problem because of the .+. ----------------- s''limp';@p=split '!','n!h!p!';s,m,s,;$s=y;$c=slice @p1;so brutally;d;$n=reverse;$c=$s**$#p;print(''.$c^chop($n))while($c/=$#p)>=1;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||