O'Reilly logo

The “Oslo” Modeling Language by Don Box, Brad Lovering, David Langworthy

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 9. Text Pattern Expressions

Text pattern expressions perform operations on the sets of possible text values that one or more terms recognize.

Primary Expressions

A primary expression can be:

  • A text literal

  • A reference to a syntax or token rule

  • An expression indicating a repeated sequence of primary expressions of a specified length

  • An expression indicating any of a continuous range of characters

  • An inline sequence of pattern declarations

The following grammar reflects this structure.

Primary:

 

ReferencePrimary

 

TextLiteral

 

RepetitionPrimary

 

CharacterClassPrimary

 

InlineRulePrimary

 

AnyPrimary

Character Class

A character class is a compact syntax for a range of continuous characters. This expression requires that the text literals be of length 1 and that ...

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