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