02-12-2018 06:31 AM
I want to create a string used to input a password. In that I want to put some conditions like follows:
1. String must not me greater than 8 characters.
2. It must contain atleast one Upper case and one Lower case character.
3. It must contain atleast one symbol.
For this i didn't find any direct function so I have completed the program halfway.
Please, see the attahed VI and give some solution if anyone have.
Solved! Go to Solution.
02-12-2018 07:06 AM
You only attached the project file, no VIs.
/Y
02-12-2018 07:18 AM - edited 02-12-2018 07:18 AM
Match Pattern will be your friend here.
02-12-2018 07:22 AM
02-12-2018 10:44 AM
Try this.
02-12-2018 10:25 PM
Sorry. Here, is the project file.
02-12-2018 10:44 PM
Its a really good solution. And you made it too simple.
Thank you.
02-12-2018 11:22 PM - edited 02-12-2018 11:23 PM
@crossrulz wrote:
Match Pattern will be your friend here.
This might just be wanting to optimize things as much as possible, but instead of using pattern matching for the upper and lower case comparison could you not just compare the inputs and outputs after passing the string through "To Upper Case".
02-13-2018 01:36 AM
This might just be wanting to optimize things as much as possible, but instead of using pattern matching for the upper and lower case comparison could you not just compare the inputs and outputs after passing the string through "To Upper Case".
No, it is not enough. Strings with only lower case letters will pass.
02-13-2018 04:01 AM
With this solution I want to add some extra points for my project.
1. I want to display a pop-up window if any of the match pattern becomes false.
For this, I have used one button dialogue and showing "string limit exceeded" pop-up.
But, for other conditions like I want to show "There must be atleast one capital letter." for second match pattern function.
Its is malfuntioning in my VI.
Please, give the solution if any.