I have two data testing12334 which can be written as
testing[0-9]*$
in regular expression then I have testing33ab_1abckd which I can write as
testing[0-9][a-z][_][0-9][a-z].
I am trying to make one reg exp that works for both. Struggling any insight?
UPDATE: in shell(.ksh)
testing[0-9]+[a-z]+_[0-9]+[a-z]+, which is not what the answers currently given are going to match. Then again, you might meantesting[0-9a-z]+_[0-9a-z]+or maybe justtesting[0-9a-z_]+. You should clarify.