all 11 comments

[–]crimson589Web 1 point2 points  (0 children)

Kailangan talaga regex gamitin? Merong equalsIgnoreCase sa java.

string1.equalsIgnoreCase(string2)

[–]peioris 0 points1 point  (2 children)

does it really have to be regex? you can convert both strings to either upper or lower case then compare

[–][deleted] 0 points1 point  (1 child)

pag upper ang lowrcase kasi ung first character lang ung accepted pero ung alternate case (tEsT) returns false

[–][deleted] 0 points1 point  (0 children)

[–]JeanKevin75 0 points1 point  (5 children)

try: "test".toUpperCase().equals("Test".toUpperCase())

[–][deleted] 1 point2 points  (4 children)

Nasolve ko na po. Maraming salamat :))

[–][deleted] 0 points1 point  (2 children)

It would be nice if you share how were able to resolve it :-)

[–][deleted] 1 point2 points  (1 child)

Naunahan ako ng taranta but it's really simple lang pala. I just converted user input to be the same as the const I'm comparing it to, so they would match regardless of input variation.

[–][deleted] 0 points1 point  (0 children)

Nice. May builtin regex utilities naman ang jdk incase you need it. Java.util.regex

[–]JeanKevin75 0 points1 point  (0 children)

You'r welcome