ReGex Format a phone Number

Hi all I could use some help on a script much like the following post found HERE

However, I need to be able to extract the phone number “310-555-1234” or just “3105551234” either option will work whatever is easier from this text:


I greatly appreciate the help!

Is this string always the same? If so, removing just the first four chars would work, or?

      "Command": "sourceExtract",
      "Target": "regex=tel:\\+([A-Za-z0-9]+(-[A-Za-z0-9]+)+)",
      "Value": "Phone",
      "Description": ""