Re: Regex Help



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
.