in reply to Re^2: regex for stringin thread regex for string
So I gave you a regex, but still used substr.
The real question is, why do you insist on using a regex? it's not a good idea, and far from being an ideal solution.