Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to check Naming Conventions (string manipulation)

Status
Not open for further replies.

nexus

Programmer
Jun 16, 1999
28
0
0
CA
Hi! I need to make a function to check that users are following a specific naming convention. I'm thinking about making an array with all the acceptable characters, or an array with all the unacceptable characters. However, each time I need to check a string, I'll have to compare every character of the string to everything in the array (worst case). Is there some better way to do this? Thanks.
 
WHY first of all?<br>
Then if you must put them in a table.<br>
and search it using SQL (fastest)<br>
Or how about an Input MASK?<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
don't ask me why we need to check naming conventions. anyhow, seems they don't care about runtime, so I'll just write crude but functional code! I'll be working for Microsoft in no time... hehehe. Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top