From: calvin8@... (Andi Scharfstein) Date: 2003-06-11T07:17:33+09:00 Subject: Re: OT: Regexp question Hi, >>> Add "South Dakota (00)", "New Jersey (29332)" to your tests... =) >> >> 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]/ -- Bye: Andi S. mailto:nullpointer@myrealbox.com