>>> Right. /^(\w+)\s?[\(|\n]/ ? > >> Does not work :( > > Yeah, sorry. That one contained two errors: > Firstly, a space does not register as \w (that's the reason it didn't > work). Secondly, | in a square bracket is unnecessary. So, if you > wanted to do it this way (which I don't expect you will, considering > the great advice you already got on this list), the regex should read > /^(.+)\s?[\(\n]/ But now I know why it doesn't work, I like that :) bye! Dominik