0

Code coach challenge

It failed 3 test cases. Tried to complete it using regex alone but it failed to match the punctuations. #third if statement #if pa.match? /[@#

amp;*!%]/ print "Strong" #doesn't match https://code.sololearn.com/cA654G3rTYnA/?ref=app

4th Jun 2020, 12:05 AM
Justus
Justus - avatar
6 Antworten
+ 2
The qwe45#@ is strong but the result shows week. Try to find out here on the Playground why, and update it, and then can be that tested in code coach.
4th Jun 2020, 1:36 AM
JaScript
JaScript - avatar
+ 2
pa= gets.chomp if pa.match /[
amp;*!%@]+/ if pa.match /[0-9]+/ if pa.length > 6 print "Strong" else print "Weak" end else print "Weak" end else print "Weak" end
4th Jun 2020, 5:46 PM
JaScript
JaScript - avatar
+ 1
Ja Play thanks a lot
4th Jun 2020, 7:10 PM
Justus
Justus - avatar
0
Ja Play I changed it, still failed 3 test cases
4th Jun 2020, 12:09 PM
Justus
Justus - avatar
0
~ swim ~ could you help with this please.
4th Jun 2020, 12:11 PM
Justus
Justus - avatar
0
Your welcome!
4th Jun 2020, 8:22 PM
JaScript
JaScript - avatar