Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?
[Discipulus]: choroba i'm considering to add some connection checking to your CB tk program: something like..
[Discipulus]: i got also a parser error, but once
[KurtZ]: Code Tags
[KurtZ]: ?
[choroba]: <code>...</code>
[choroba]: Discipulus: Yes, all get calls should be wrapped in a Try::Tiny
[choroba]: you can just create a ticket :)
[Discipulus]: Ah! is i'll have some fre4e time i'll try try::tiny

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-07-24 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (349 votes). Check out past polls.