xml regular expression/regex OR operator
- by Naz Haque
Hi am trying to use a regeX to read through my document to identify currency types whether they're $,£ or a €. The regex I've created doesn't seem to work, somebody please advise me what it should be. I'd really appreciate the help:
The regEX I've created ("\$|£|€]")is in a simpleType within my XSD file used for validating a document. The code is show after the colon, please note to display on stackoverflow I've had to remove the open/close tags (<):
xs:simpleType name="currencyType"
xs:restriction base="utf8-string"
xs:length value="1" /
xs:pattern value="[\$|£|€]"/
/xs:restriction
/xs:simpleType