- Joined
- Oct 8, 2006
- Messages
- 1
- Reaction score
- 0
Howdy all,
I am so new to schemas. I'd like to include the dollar sign, $, in my pattern element for a regular expression to define a price. Prices could be $100.50 or $45.99 Can anyone help? This is what I have:
Thanks,
astro
I am so new to schemas. I'd like to include the dollar sign, $, in my pattern element for a regular expression to define a price. Prices could be $100.50 or $45.99 Can anyone help? This is what I have:
Code:
<xs:simpleType name="priceType">
<xs:restriction base="xs:string">
<xs:pattern value="$\d+\.\d{2}"/>
</xs:restriction>
</xs:simpleType>
Thanks,
astro