reg exp question

by "Michael Gerholdt" <gerholdt(at)fredonia.edu>

 Date:  Mon, 30 Apr 2001 09:16:18 -0400
 To:  "hwg-techniques" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hi,

I'm using this as a pattern to remove any spaces and apostrophes from last
names.

\s*\W

I run a replace on a string to replace this pattern with nothing.
Then I run a replace on the result to replace this pattern with nothing
again.

Though I consider it a bit of a kludge it has always worked fine, but I'm
finding an instance where it seems to be burping - and on a name that has no
non-alpha characters. (reporting a type mis-match, actually - vbsccript/asp
environment).

At any rate, I assume there must be a better regexp pattern which would work
in one pass, and that others have had to do the same and probably know just
what it is?

Anyone?

Regards,
Michael Gerholdt
SUNY College at Fredonia

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA