How I can get part of SIP URI?
For example I have URI sip:[email protected]
, I need get just username
and I use [^sip:](.*)[$@]+
expression, but appeared result is username@
. How I can exclude from matching @
?
this should do the job
(?<=^sip:)(.*)(?=[$@])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With