hai friends
I need to check the password value have one numaric value .how to check the numeric value in given password.
please help me
Thanks
hai friends
I need to check the password value have one numaric value .how to check the numeric value in given password.
please help me
Thanks
Use the indexOf method on the password string, inside a loop through the digits 0 through 9 put in the substring parameter. Any return which is not -1 means a digit was found.
Or you could use regular expressions to pattern match a digit.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.