Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(?<=<tpcs>).*?(?=<\/tpcs>)
/
g
Input 1
1
New
<aof xmlns="http://tsng.jun.net/jppos/conig/hello"><tpcs>5</tpcs><num>3</num><desc>addy02</desc><tpcs>5</tpcs></aof> <aof xmlns="http://tsng.jun.net/jppos/conig/hello"><tpcs>5</tpcs><num>3</num><desc>addy02</desc><tpcs>5</tpcs></aof>
Extraction
<aof xmlns="http://tsng.jun.net/jppos/conig/hello"><tpcs>5</tpcs><num>3</num><desc>addy02</desc><tpcs>5</tpcs></aof> <aof xmlns="http://tsng.jun.net/jppos/conig/hello"><tpcs>5</tpcs><num>3</num><desc>addy02</desc><tpcs>5</tpcs></aof>