Christos wrote: >Many thanks for your kind attention. Can you send your input file too? Sure. It's just a list of regular expressions to try. But you already knew that. -=- snip -=- test ^test (test) exec ^exec (exec) (ex(ec)) (ex)(ec) ([[:alnum:]]) ([[:alnum:]]+) ([_[:alnum:]]+) ([_[a-z0-9]+) -=- snip -=- Thanks for looking at it for me, Christos. --jkl