This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Composition of a pattern

Patterns are composed of components and matches.

Using components within matches means that:

In the example below, the pattern has one match and four components.

Pattern 1

In addition to the text string used to match the response, you can add further details about the pattern.

The example below shows two Matches for year; {4 digits} and {2 digits}, signifying that there can either be 4 digits or 2 digits representing the year part of the date. For example, 2006 or 06.

Component properties 3

The Matches for the month component can be seen below. There are 5 matches within the component, signifying that either 12, 11 or 10 is acceptable or a zero followed by a digit, such as 05 or a single digit, such as 5 (to represent May).

month 1

The separator component of this DD/MM/YYYY pattern has been set up to accept dashes, obliques and full stops as the divider between the various parts of the date.

Component properties 5

See Also

Applying a pattern in the questionnaire window

Applying a pattern in the Variables window

Patterns during data entry

Creating a new pattern example

Testing a pattern

Modifying, cloning and deleting patterns

Copying patterns between surveys