Regular Expressions 101

Community Patterns

1...45678...17

Replace namespaces in xpath with local-name

0

Regular Expression
.NET 7.0 (C#)

@"
(?<=(/|^))(((/|^)|(\w*:))(?<node>.*?))(?=/|$)
"
gm

Description

Replace namespaces in xpath with local-name

Submitted by pvlzh - a year ago