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
/
<lat>(.+)<\/lat>|<lon>(.+)<\/lon>
/
gu
Input 1
<countryCode>DE</countryCode> <country>Deutschland</country> <countryCodeISO3>DEU</countryCodeISO3> <freeformAddress>Musterstraße 4, 01234 Muster</freeformAddress> <localName>Musterhausen</localName> </address> <position> <lat>49.90707</lat> <lon>7.81838</lon> </position> <viewport> <topLeftPoint> <countryCode>DE</countryCode> <country>Deutschland</country> <countryCodeISO3>DEU</countryCodeISO3> <freeformAddress>Musterstraße 5, 01234 Muster</freeformAddress> <localName>Musterhausen</localName> </address> <position> <lat>46.90707</lat> <lon>6.81838</lon> </position> <viewport> <topLeftPoint>
Substitution
<countryCode>DE</countryCode> <country>Deutschland</country> <countryCodeISO3>DEU</countryCodeISO3> <freeformAddress>Musterstraße 4, 01234 Muster</freeformAddress> <localName>Musterhausen</localName> </address> <position> <lat>49.90707</lat> <lon>7.81838</lon> </position> <viewport> <topLeftPoint> <countryCode>DE</countryCode> <country>Deutschland</country> <countryCodeISO3>DEU</countryCodeISO3> <freeformAddress>Musterstraße 5, 01234 Muster</freeformAddress> <localName>Musterhausen</localName> </address> <position> <lat>46.90707</lat> <lon>6.81838</lon> </position> <viewport> <topLeftPoint>