22-01-2009 by Marek Śliwiński
Post moved to new location:
http://code.mareoblo.pl/2009/01/22/regular-expressions-remove-all-special-characters-from-a-string-allowing-only-alphanumeric-and-chars-%e2%80%98-%e2%80%99-and-%e2%80%98-%e2%80%99/
Posted in Regular Expressions | Tagged Regular Expressions | 3 Comments
Thanks for the simple and wonderful example! It helps alot and saves my time! Thanks again!
What if I only want 0-9 and a-z? How do I change the regular expression for that?
And the ‘@’ sign in the Replace function does not work in VB.NET?
‘@’ is a literal operator. There is no vb.net version of it.
Comments RSS
Name (required)
E-mail (will not be published) (required)
Website
Notify me of follow-up comments via email.
Thanks for the simple and wonderful example! It helps alot and saves my time! Thanks again!
What if I only want 0-9 and a-z? How do I change the regular expression for that?
And the ‘@’ sign in the Replace function does not work in VB.NET?
‘@’ is a literal operator. There is no vb.net version of it.