Match only numbers of SIP URI before the @ symbol

PHOTO EMBED

Thu Aug 18 2022 17:07:29 GMT+0000 (Coordinated Universal Time)

Saved by @jhambach #n8n #json #sip #phone #number

.match(/(\d+)(?=\D\@)|(\d+)(?=\@)/g)[0]
content_copyCOPY

For our purposes, this only matches the "extension" of a user before the @ symbol. Example: sip:123@domain would only match 123 sip:1543d@domain would only match 1543