"Steve" <ba****@iranmania.com> wrote in news:1126971135.813362.284690
@g49g2000cwa.googlegroups.com:
Thank you Lucas for the help. I really want to learn how I can specify
which characters I do NOT want as opposed to what I want. Do you know
the syntax for this?
Just be aware if you go that route, you'll have to filter out a lot of
characters (i.e. numeric, non-ascii, symbols, etc). Basically there are a
lot of combinations you'll need to filter. If you insist on going this
route, you might want to look at Unicode Character sets. .NET's regular
expression parser has the ability to specific sets of characters with
shortcuts:
\p{name} Matches any character in the named character class specified by
{name}. Supported names are Unicode groups and block ranges. For example,
Ll, Nd, Z, IsGreek, IsBoxDrawing.
\P{name} Matches text not included in groups and block ranges specified in
{name}.
It might be best to stick with the KISS principle, and only allow a certain
character set : )
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
Newmarket Volvo Sucks!
http://newmarketvolvo.tripod.com