You are talking about regexes, but your example shows the most trivial regex one can image, namely one that doesn't contain any
characters that are special. Do you want to match any possible regex, or are you just looking for matching strings? The latter is far, far more easier than the former - and the latter doesn't need the regex engine at all.
in reply to Re^4: non-exact regexp matches
in thread non-exact regexp matches