Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » password verification(How to figure out the simbols in string)
password verification [message #1713121] Sat, 31 October 2015 20:39 Go to next message
Sergei Sergei is currently offline Sergei SergeiFriend
Messages: 2
Registered: October 2015
Junior Member
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 10:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: password verification [message #1713222 is a reply to message #1713121] Mon, 02 November 2015 14:08 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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 13:09 Go to previous message
Sergei Sergei is currently offline Sergei SergeiFriend
Messages: 2
Registered: October 2015
Junior Member
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: Wed Apr 24 21:00:45 GMT 2024

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

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

Back to the top