Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: More complicated regular expression?

by VinsWorldcom (Priest)
on Jan 26, 2012 at 15:35 UTC ( #950131=note: print w/ replies, xml ) Need Help??


in reply to Re^2: More complicated regular expression?
in thread More complicated regular expression?

And I bet you're getting a space in front of the 74. Your "\d" at the end is matching a single digit character and since it's at the end of your parenthesis grabbing match, it's taking the last character - excluding it from your match.

Use JavaFan's regex above and all will be well.


Comment on Re^3: More complicated regular expression?
Re^4: More complicated regular expression?
by jaldama (Acolyte) on Jan 26, 2012 at 16:07 UTC
    You're right, and JavaFan's code worked perfect. Thanks a lot

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-08-23 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (171 votes), past polls