Re: Regex Help
- From: peterc@xxxxxxxxxxxxxx (Peter Cornelius)
- Date: Tue, 18 Apr 2006 18:13:50 -0700
This will match a ! followed by 0 or more not ! chars, I suppose it's matching the 0 part of that. Try a '+' instead of a '*'
$str =~ /\![^!]*/;
PC
.
- References:
- Regex Help
- From: Jim
- Regex Help
- Prev by Date: Regex Help
- Next by Date: RE: Regex Help
- Previous by thread: Regex Help
- Next by thread: Re: Regex Help
- Index(es):