1). modification require below expression
^.{0,100}$
this expression not begin with 'WW' or'MM' and not add spacial characters
other condition is
2). how can i add ^.{0,100}$
this condition in below expression
(?:WW[A-Za-z0-9]{10}|MM\d{8})$
For the first pattern, use a negative lookahead
^(?!WW|MM)[A-Za-z0-9]{0,100}$
For the second pattern, fill the rest for either part with any char until 100
^(?:WW[A-Za-z0-9]{10}.{88}|MM\d{8}.{90})$
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.