gskinner / regexr

RegExr is a HTML/JS based tool for creating, testing, and learning about Regular Expressions.
http://regexr.com/
GNU General Public License v3.0
9.71k stars 959 forks source link

PCRE replace issuse #407

Open jhuijsing opened 3 years ago

jhuijsing commented 3 years ago

test line sip:+14489938989833;rn=+21450@test.com

regex ^(sip|tel):+1([[:digit:]]).;rn=+2([[:digit:]]{4,5}).*

replace tel:\330\2;phone-context=+1

displays

tel:04489938989833;phone-context=+1

expecting tel:1450304489938989833;phone-context=+1

skys215 commented 3 years ago

regex should be ^(sip|tel):\+1([[:digit:]]+).;rn=\+2([[:digit:]]{4,5}).*

replace should be tel:${3}30\2;phone-context=+1

Link