placing $ in regular expression

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:

Code:
<xs:simpleType name="priceType">
		<xs:restriction base="xs:string">
			<xs:pattern value="$\d+\.\d{2}"/>
		</xs:restriction>
</xs:simpleType>

Thanks,
astro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,247
Members
46,844
Latest member
JudyGvh32

Latest Threads

Top