Regex getting next text entered and next number entered

The RegEx I provided above will include any country codes or other digits prior to the 10 digit phone number. If you want the last 10 digits, then this should work:

Example Output

image

MACRO:   Extract 10-digit Phone Number

**Requires: KM 8.2.4+   macOS 10.11 (El Capitan)+**
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/9/6/9613b2afdb6aa7713b3c694757e9b9242f4c8a02.kmmacros">Extract 10-digit Phone Number.kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**


---


<img src="/uploads/default/original/3X/1/2/12c69d7cbef45f5653f1085398ca119937c934cc.png" width="513" height="1100">
2 Likes