Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 having an uproarious good time at the Monastery: (5)
As of 2015-02-01 19:23 GMT
Find Nodes?
    Voting Booth?

    On my keyboard, Caps lock is:

    Results (8 votes), past polls