Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: RegEx for users who dont know RegEx

by The Mad Hatter (Priest)
on Dec 23, 2004 at 17:36 UTC ( #417166=note: print w/replies, xml ) Need Help??


in reply to Re: RegEx for users who dont know RegEx
in thread RegEx for users who dont know RegEx

($reg_exp = $user_query) =~ s/(\W)/$1 eq '*' ? "\\S*" : "\\\$1"/ge;
You have too many slashes in the second part of that ternary (results in invalid chars being replaced by a literal '\$1').

Replies are listed 'Best First'.
Re^3: RegEx for users who dont know RegEx
by ikegami (Pope) on Dec 23, 2004 at 17:39 UTC
    Thanks. Fixed. Tested.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://417166]
help
Chatterbox?
[Tux]: choroba++ # pm_cb_g also signals replies to posts, something#cbstream does not
[marto]: good afternoon all
[marto]: that is a neat feature, I'll have to have a look at how it displays that
[Tux]: 14:32 Europe/Amsterdam, so good afternoon to you :)
[marto]: 13:32, sunny Glasgow :P

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-09-22 12:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (262 votes). Check out past polls.

    Notices?