in reply to Re: Need help on regexp
in thread Need help on regexp
"... 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Need help on regexp
by 2teez (Vicar) on Aug 04, 2013 at 06:40 UTC |