Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Regexp Confuzzelemt

by suaveant (Parson)
on Apr 27, 2007 at 14:20 UTC ( #612386=note: print w/ replies, xml ) Need Help??


in reply to Regexp Confuzzelemt

#.*[^\?] is actually matching everything after the hash, then the c at the end, because [^\?] matches a single character that is NOT a question mark...

I think what you are looking for is

#([^?]+) # don't need \? in character class []
That will match 1 or more non question mark characters after a #

                - Ant
                - Some of my best work - (1 2 3)


Comment on Re: Regexp Confuzzelemt
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-05 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls