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;
In Section
Seekers of Perl Wisdom