title: Regex replace phone numbers with asterisks pattern
body: <p>I want to apply a mask to my phone numbers replacing some characters with "*".</p>
  
  <p>The specification is the next:</p>
  
  <p><strong>Phone entry</strong>: (123) 123-1234</p>
  
  <p><strong>Output</strong>: (1**) ***-**34</p>
  
  <p>I was trying with this pattern: <code>"\B\d(?=(?:\D*\d){2})"</code> and the replacing the matches with a "*"</p>
  
  <p>But the final input is something like <code>(123)465-7891 -&gt; (1**)4**-7*91</code></p>
  
  <p>Pretty similar than I want but with two extra matches. I was thinking to find a way to use the match zero or once option (??) but not sure how.</p>