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
In reply to Re: Need help on regexp
by kcott
in thread Need help on regexp
by siva.snimmaka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |