Regular Expressions 101

Enterprise

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

r"
(?:(?<![^/\[(|=<>!+*-:]) | (?<=\s(?!and\b|or\b|mod\b|div\b))) (?=(?:[^'\"]*(?:'|\")[^'\"]*(?:'|\"))*[^'\"]*$) (?![a-zA-Z][a-zA-Z\d_.-]*[\(:]) ([a-zA-Z][a-zA-Z\d_.-]*)
"
gx

Description
Created·2020-09-17 08:52
Type·Substitution
Flavor·Python

replace all element with their local-name in xpath (so that namespace do not matters at all)

Submitted by Anonymous
Open Workspace