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

Re^3: More complicated regular expression?

by VinsWorldcom (Vicar)
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?
Replies are listed 'Best First'.
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 exploiting the Monastery: (6)
As of 2015-07-28 04:15 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 (252 votes), past polls