Question

How to interpret the following xml element?

xs:pattern value="[ !-~]*"
Was it helpful?

Solution

This is a regular expression pattern meaning that the element it applies to has to have in itself at least 0 characters of the following type: spaces and/or characters between ! and ~ (inclusive).

Thats all characters with ascii code with 32..126

Since space is just before ! u could also use [ -~]* instead

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top