The example in this article describes how to use replace() to replace mobile phone numbers with javascript regular expressions. Share it with everyone for your reference.
The specific implementation method is as follows:
Your mobile phone number is 13500112233
Little Pig’s mobile phone number is 13699887766
Big Bear’s mobile phone number is 13810102222
I hope this article will be helpful to everyone’s JavaScript programming design.