xml regular expression/regex OR operator
Posted
by
Naz Haque
on Stack Overflow
See other posts from Stack Overflow
or by Naz Haque
Published on 2012-11-10T22:54:28Z
Indexed on
2012/11/10
23:00 UTC
Read the original article
Hit count: 352
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
© Stack Overflow or respective owner