473,396 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What's the correct Validation Expression Syntax?

Dear Group

I'm having a password field which should contain at least one
character a-z AND at least one number 0-9. I can't figure the correct
syntax, have tried something like the one below and variations of it
with no luck. Any help is very much appreciated.

[A-Za-z{1,}]* AND [0-9{1,}]*

Thank you for your time & efforts!

Martin
Nov 18 '05 #1
2 1401
I always use this site, http://www.regexlib.com/RETester.aspx, to test my
regular expressions. You can test both javascript and .NET regular
expressions.

tomledk :)

"Martin" <th************@hotmail.com> wrote in message
news:72**************************@posting.google.c om...
Dear Group

I'm having a password field which should contain at least one
character a-z AND at least one number 0-9. I can't figure the correct
syntax, have tried something like the one below and variations of it
with no luck. Any help is very much appreciated.

[A-Za-z{1,}]* AND [0-9{1,}]*

Thank you for your time & efforts!

Martin

Nov 18 '05 #2
Jos
Martin wrote:
Dear Group

I'm having a password field which should contain at least one
character a-z AND at least one number 0-9. I can't figure the correct
syntax, have tried something like the one below and variations of it
with no luck. Any help is very much appreciated.

[A-Za-z{1,}]* AND [0-9{1,}]*

Thank you for your time & efforts!

Martin


Something like this:

(.*[A-Za-z]+.*[0-9]+.*)|(.*[A-Za-z]+.*[0-9]+.*)

--

Jos Branders
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Steve | last post by:
Hi I have a really weird problem and any assistance would be welcome. I have developed an app in Access 2002. The app runs perfectly on the development machine. I have packaged the app using...
2
by: Martin | last post by:
Dear Group I'm having a password field which should contain at least one character a-z AND at least one number 0-9. I can't figure the correct syntax, have tried something like the one below and...
1
by: Sreedhar Vankayala | last post by:
Hi, I have a simple textbox in a form page. - If data not available, then user can enter the text "Not available" or "Contact abc person". - If data is available, then user enters the data...
5
by: JIM.H. | last post by:
Hello, I have this validation expression: ^(?:(?:0?|1)|(?:0?|11)(?!\/31)|(?:0?2)(?:(?!\/3|\/29\/(?:(?:0||)00|(?:\d{2}(?:0||))))))\/(?:0?||3)\/\d{4}$ This is supposed to match MM/DD/YYYY it is...
4
by: clintonG | last post by:
I'm not getting the hang of what I thought I already understood. Maybe burnout? I want to build a string in code and write it into the HTML for display... // initiliazed in code string someText...
2
by: Jon Paal | last post by:
this validationexpression fails for "mm/dd/yyyy" what is correct pattern ? ValidationExpression="(^\d{1,2}/|-\d{1,2}/|-\d{4}$ )"
7
by: Hexer | last post by:
Hi and good day to all...I am new to the C language and whenever I tried to run the program I made, it won't because it says it has an "expression syntax error in function main"..what I don't get is...
1
by: AAaron123 | last post by:
I found this on the Internet and tried a few of them and they worked in VS2008. Actually it was in a different form but I converted to make a smaller file. The data is the same as the original. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.