cancel
Showing results for 
Search instead for 
Did you mean: 

regEx check String pattern

jerome_lim
Participant
0 Kudos

hi,

I am new with Java.

I have a question :

I would like to check whether a String starts with "AAA" and followed by exactly 5 or 7 digits.

like AAA22222, or AAA9999999

an example is welcome.

kind regards,

Ben.J.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193379
Active Contributor
0 Kudos

Ben,

Please use the String class methods to achieve your requirement.