By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

Checking strings are alphanumeric

P: n/a
Is there a nice .NET framework function that will allow me to easily check
if a string contains only alphanumeric characters?

Or is the only way to loop through the characters, checking each one
individually?

TIA,

--

(O)enone
Feb 7 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Oenone" <oe****@nowhere.com> schrieb:
Is there a nice .NET framework function that will allow me to easily check
if a string contains only alphanumeric characters?

Or is the only way to loop through the characters, checking each one
individually?

Check out the 'Like' operator and/or
'System.Text.RegularExpressions.IsMatch'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Feb 7 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.