O'Reilly logo

Definitive XML Schema by Priscilla Walmsley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10 Regular expressions

Patterns are used to restrict the values of simple types to certain sequences of characters. For example, a pattern could specify that an SKU must be three digits, followed by a dash, followed by two uppercase letters. These patterns are described by regular expressions. This chapter explains the XML Schema syntax for regular expressions.

10.1 The structure of a regular expression

The XML Schema’s regular expression language is very similar to that of the Perl programming language. Regular expressions are made up of branches, which are in turn made up of pieces. Each piece consists of one atom and an optional quantifier.

For example, suppose the product number in your organization ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required