Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 browsing the Monastery: (10)
As of 2015-09-02 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (60 votes), past polls