Skip to main content



      Home
Home » Newcomers » Newcomers » password verification(How to figure out the simbols in string)
password verification [message #1713121] Sat, 31 October 2015 16:39 Go to next message
Eclipse UserFriend
Hi, there! I am checking the password (type string) for hardness, the constrain is to collect letters with different register and integers together in one string (password). I am doing in this way, but it doesn't work:

'adaAWDD123'.matches('[A-Z]*[a-z]*[0-9]*')

It would be not true...Could you help me with it?
Re: password verification [message #1713137 is a reply to message #1713121] Sun, 01 November 2015 05:17 Go to previous messageGo to next message
Eclipse UserFriend
Your question is about how to use regular expressions. That's not
Eclipse-specific. Better to Google and then use Stackoverflow... Your
pattern doesn't match because it allows only upper case letters followed
by lower case letters followed by numbers, any or all of which can be
absent, but the string starts with lower case letters and upper case
letters aren't allowed after that.

On 01/11/2015 5:38 AM, Sergei Sergei wrote:
> Hi, there! I am checking the password (type string) for hardness, the
> constrain is to collect letters with different register and integers
> together in one string (password). I am doing in this way, but it
> doesn't work:
>
> 'adaAWDD123'.matches('[A-Z]*[a-z]*[0-9]*')
>
> It would be not true...Could you help me with it?
Re: password verification [message #1713222 is a reply to message #1713121] Mon, 02 November 2015 09:08 Go to previous messageGo to next message
Eclipse UserFriend
On 10/31/2015 10:38 PM, Sergei Sergei wrote:
> Hi, there! I am checking the password (type string) for hardness, the
> constrain is to collect letters with different register and integers
> together in one string (password). I am doing in this way, but it
> doesn't work:
>
> 'adaAWDD123'.matches('[A-Z]*[a-z]*[0-9]*')
>
> It would be not true...Could you help me with it?
This site is for answering questions on Eclipse and setting it up.
Re: password verification [message #1716617 is a reply to message #1713137] Sun, 06 December 2015 08:09 Go to previous message
Eclipse UserFriend
thanks!
Previous Topic:Java version for Eclipse PHP on MAC
Next Topic:Eclipse Architecture - how are plug-ins registered at Eclipse start?
Goto Forum:
  


Current Time: Sun Apr 20 10:02:59 EDT 2025

Powered by FUDForum. Page generated in 0.07432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top