RE: [xml-dev] XPath expression which checks that all commas are escaped

From
Costello, Roger L. <>
To
"" <>
Date
2017-11-03T21:10:40Z
ID
<>
Thread
RE: [xml-dev] XPath expression which checks that all commas are escaped
Michael Kay wrote:

> I suspect that there must only be one
> backslash before the comma: if there
> are two ("\\,") then the comma is not
> escaped because the "\\" represents
> a real backslash.

Wow! 

I had not thought about that. 

> not(matches(replace(., '\\\\', ''), '^,|[^\\],'))

Awesome!

/Roger