Mobile phone number is regular, how to add ignore space

/^1[34578]\d{9}$/.test()

this is how to ignore all spaces in the mobile phone number based on the regular mobile phone number

Jul.18,2022

^ 1\ s * [34578]\ s * (\ d\ s *) {9} $


/ ^ 1 [34578] d {9} $/ .test


you don't know that mobile phone numbers start with 16 and 19.


Lou Zhu, now there is a new number range of 165i 19

.
Menu