Regular Expressions 101

Library entries

Regex to capture AlphaNumeric String of 7 or 11 length(Must contain at least one Alphabet and Must contain at least one Numeric)

Vote

0

Regular Expression
java

"
\s(?=\w*[0-9])(?=\w*[A-Z])([A-Z\d]{11}|[A-Z\d]{7})\s
"
g

Description

Loading markdown...
Submitted by Suman Maharjan - 7 months ago