This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Creating a new pattern example
This example shows how the DD/MM/YYYY pattern can be created. This ensures that the respondent enters a date with day-month-year format, where the year part can include a two-digit century.
The separator between day/month and month/year can be any of "/", "-" or ".".
All these are valid dates: 06/08/2003; 6-8-2003; 06.8.2003; 6/08/03 for this pattern.
Examples of invalid dates are: 6th August 2003; 06/Aug/2003.
This example shows how to create patterns using buttons and dialog boxes. You can also create patterns by using the context menu in the dialog.
- Select to open the Patterns dialog.
- Select in the Patterns dialog to display the dialog.
- Choose a name for the pattern and type it in to the box. Try to make the name as specific as possible to its purpose. For example, rather than write it as Date write it as DD/MM/YYYY so that its format can be identified easily by others using it.
- Enter a giving more information. This will be displayed when the pattern is selected on the front page of the Patterns dialog.
- You can enter a reference in the giving specific details about where you accessed the information for the Pattern: for example, a website address; a database; a reference book.
- Select the response type that the pattern will be used with from the drop-down list. Select for patterns that will not be available directly to variables, but only for use within other Patterns.

- You can create patterns by using a plain text string as a match, however, it is sometimes more effective to build the up from .
Creating components to use in your match
- Click to display the part of the dialog.

- Click to the right of the area to display the dialog.

- Type in a for the you are writing. For example for DD/MM/YYYY you might call one of the components 'Day', which you would type in the space. In you might write 'Day part of Date'.
- Select to create a for the .
- The dialog displays.
You build up the pattern to match from text and components. You can use the buttons on the dialog to select items, or right-click the field to display the context menu.
- Either type a text string into the box or double click one of the to select it.
- For the day component you would want one digit or two digits recognised, as respondents would be likely to type in either one or two digits when answering this part of the question. For example: 01 or 1 when referring to the first day of the month.

- If you are looking for a particular character click to show more options in the dialog.
- Highlight the characters required and click . If a letter is selected, both the lower and upper case version will show in the match unless is ticked.
- For the first two-digit match of the Day example:
either double-click in twice
or double-click and then use to permit multiple copies.
The button gives options for each part of the Component. Ensure that the part of the Component you want to affect is highlighted before selecting acommand. Each of the commands creates constraints which the data must adhere to in order to fit the pattern.

- Click to return to the dialog and again to return to the dialog.
- Once satisfied with all the return to the dialog.
Deleting components
If you wish to delete any of the highlight it and click . Snap will display a warning message to confirm that you do want to delete the Component:
Creating the match from the components

- On the dialog you will see that you now have a list of but no overall for the pattern. Select under the part of the dialog and the dialog will display again

The newly built components will show in the left-hand column . You can now create a match from both your components and the existing . and work in the same way as previously explained.
- Select the component, then , , , and .
- Click when you have finished and you will be returned to the dialog.