Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Need help on regexp

by kcott (Canon)
on Aug 03, 2013 at 15:49 UTC ( #1047721=note: print w/replies, xml ) Need Help??


in reply to Need help on regexp

G'day siva.snimmaka,

Welcome to the monastery.

"I need a regular expression to match abcd_efgh-1.2.3 but it should not match abcd_efgh-1.2.3-hjik-3.4.5.tar.gz"

You really need to post more information to get a reasonable answer. To highlight this, the following regular expression meets your posted requirements:

/3$/

Does your problem really only involve just those two strings? Did you try anything yourself and ran into difficulties? A better question will get you better answers and guidelines for doing this can be found in: How do I post a question effectively?.

-- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047721]
help
Chatterbox?
[erix]: Leasure Suit L.
[LanX]: THEY are restricting your Internet?
[LanX]: join the fight brother
[Eily]: probably because I'm an underpriviledged millenial
[LanX]: oh

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2017-03-23 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.