[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] XPath expression which checks that all commas areescaped
- From: "Costello, Roger L." <costello@mitre.org>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Fri, 3 Nov 2017 21:10:40 +0000
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
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]