Don Clugston wrote: > I should mention that the code I posted doesn't do real regexps, because > it has no backtracking. It doesn't do *, +, ? properly, they are always > greedy. It can never match ".*a", for example. > It seems hard to do this properly without creating a highly optimised > regexp parser! LOL! (Self-reference.)