Hello All sir,
Can any body able to give me Regular expression for validatrion string that must have atleast one alphabet,atleast one numeric value?

please help me??

Recommended Answers

All 6 Replies

Hello All sir,
Can any body able to give me Regular expression for validatrion string that must have atleast one alphabet,atleast one numeric value?

please help me??

A1

How about this:

([a-zA-Z].*\d|\d.*[a-zA-Z])

This matches an alpla followed (not necessarily immediatly) by a digit OR digit followed by an alpha.

Alpha can be upper or lower.

Gary Davis

How about this:

([a-zA-Z].*\d|\d.*[a-zA-Z])

This matches an alpla followed (not necessarily immediatly) by a digit OR digit followed by an alpha.

Alpha can be upper or lower.

Gary Davis

i have no idea what you are making reference to ,where is your numeric value.,

was just being funny with my A1 answer .i though the post was asking about a password .

The \d is a digit. It is the same as using [0-9].

Gary

Does this even belong in this forum?

Does this even belong in this forum?

im not sure , bu i guess it abou programing so it should be in programing section . i shouldn't even be in this thread .lol

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.