Adts Qdsfsd
Adts Qdsfsd

Reputation: 121

What does the pattern \d{10} mean?

I'm validating a form via an XML schema, and I get this error:

[facet 'pattern'] The value '12' is not accepted by the pattern '\d{10}'

What does \d{10} mean? Where can I go to learn more about pattern facets?

Upvotes: 2

Views: 33806

Answers (1)

Vincent Biragnet
Vincent Biragnet

Reputation: 2998

\d{10} means you should have 10 characters matching any decimal digit (including [0-9])

Upvotes: 5

Related Questions