Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Regexp Confuzzelemt

by jettero (Monsignor)
on Apr 27, 2007 at 14:19 UTC ( #612385=note: print w/ replies, xml ) Need Help??

in reply to Regexp Confuzzelemt

I'm guessing, but I think [^\?] doesn't do what you think... That means to match any one character that is not a '?'.

I would choose something simple like this:

if( $line =~ m/(?<=\#)(\w+)(?=\?\w+)/ ) {

Of course, you probably want to make sure the word characters start with caps and things...


Comment on Re: Regexp Confuzzelemt
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://612385]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-12-27 02:00 GMT
Find Nodes?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?

    Results (176 votes), past polls