\r\n\r\n
Regular Expressions Topics include: System.Text.RegularExpressions classes, and .NET regular expression syntax.

Go Back  Xtreme .NET Talk > .NET > Regular Expressions > digit and char in a string


\r\n \r\n \r\n \r\n
 
 
Thread Tools Display Modes
\r\n \r\n
\r\n
\r\n \r\n Prob a simple answer but I\'m pretty new to regex. I need to check a string (password) for the existance of at least one character [a-zA-Z] and also at least one digit. Thanks ahead of time for the help!
\r\n
\r\nSieggy\r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n'; pd[426899] = '\r\n\r\n \r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n \r\n\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n \r\n \r\n\r\n
\r\n
\r\n  \r\n #2  \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n Old\r\n \r\n 09-07-2004, 06:03 AM\r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n John_0025\r\n John_0025 is offline\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n \r\n Thanks a bunch!
\r\n
\r\nSieg \r\n
\r\n
\r\n \r\n
\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n
\r\n \r\n \r\n \r\n \r\n Reply With Quote\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n \r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n\r\n'; // next/previous post info pn[426870] = "426908,426899"; pn[0] = ",426870"; pn[426899] = "426870,426908"; pn[426908] = "426899,426870"; // cached usernames pu[0] = guestphrase; pu[36446] = "Sieggy"; pu[35515] = "John_0025"; // -->
Prev Previous Post   Next Post Next
  #1  
Old 09-06-2004, 06:45 PM
Sieggy Sieggy is offline
Newcomer
 
Join Date: Sep 2004
Posts: 2
Sieggy is on a distinguished road
Default digit and char in a string

Prob a simple answer but I'm pretty new to regex. I need to check a string (password) for the existance of at least one character [a-zA-Z] and also at least one digit. Thanks ahead of time for the help!

Sieggy
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Char(1) column returning as string in DataTable jayceepoo Database / XML / Reporting 1 03-17-2005 09:29 PM
C# Reading registry key binary and converting to string(char) fsX Directory / File IO / Registry 7 07-13-2004 09:35 AM
Calling C Type DLL from VB.net to return Char() or String (passed as intptr) Steppenwolf Interoperation / Office Integration 0 04-06-2004 07:07 PM
char* to string bwells General 5 11-05-2003 06:48 PM
convert from String* to const char* bwells Visual C++ .NET 2 05-20-2003 06:39 AM

Advertisement:

Powered by liquidweb