Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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...

-Paul

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2016-06-24 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (322 votes). Check out past polls.