"... then I will go with kcot[t]'s solution."
OK, that got a bit of a chuckle as /3$/ was really intended as a non-solution to highlight the lack of information provided in the question. :-)
Actually, while the strings appear highly contrived, abcd_efgh-1.2.3 looks rather like the directory I might get when unpacking a tarball of v1.2.3 of the "abcd_efgh" application. If that's the case, then using the -d file test operator might be more appropriate than trying to craft a regex; but, until more information is forthcoming, who knows.
-- Ken
In reply to Re^2: Need help on regexp
by kcott
in thread Need help on regexp
by siva.snimmaka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |