"Philipp Lenssen" <lenssen at hitnet.rwth-aachen.de> wrote in message news:a9kp6q$qch$1 at nets3.rz.RWTH-Aachen.DE... >. Now that I'm told the regex is correct another look makes > it seem obvious. The main possible glitch is nested brackets in the input. You may or may not like the result if there are.