in reply to Re: RegEx for users who dont know RegEx
in thread RegEx for users who dont know RegEx
You have too many slashes in the second part of that ternary (results in invalid chars being replaced by a literal '\$1').($reg_exp = $user_query) =~ s/(\W)/$1 eq '*' ? "\\S*" : "\\\$1"/ge;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: RegEx for users who dont know RegEx
by ikegami (Patriarch) on Dec 23, 2004 at 17:39 UTC |
In Section
Seekers of Perl Wisdom