help with regex needed

后端 未结 4 1826
失恋的感觉
失恋的感觉 2021-01-21 02:39

I need a regular expression for which:

the string is alphanumeric and have exactly 6 characters in the first half followed by hyphen(optional) followed by optional 4 cha

4条回答
提交回复
热议问题