Regular Expressions

How can I use Regular Expressions ?

Using regular Expressions it is possible to let users enter valid data into a text field . A valid zip code for example. As an example, we are going to describe how to add a Dutch zip code regular expression. The value of the regular expression is: ^\d{4}\s[A-Z]{2}$ . More information about creating regular expressions can be found here: http://www.regular-expressions.info/

If you don't know how to use regular expressions but you are still interested in this advanced option, please contact us.

Add regular expression to text question
Make sure you are logged into EyeQuestion as Project manager or System Administrator and have a new or existing EyeQuestion project open with a text question or add a text question to your new project.





Go to the advanced settings. Add the Dutch zip code regular expression  ^\d{4}\s[A-Z]{2}$ to the 'regular expression' property. To test the regular expression fill in a valid and invalid test input by the field 'test input'. Click the test input field to see if the regular expression is valid.



    • Related Articles

    • How to use Remark Labeling

      Introduction Labels are available to sort out free comments from the panellists. The objective is to make it easier to do counts and further analyse the data. The user, by applying labels to the comments, convert the data from textual type into ...
    • How to change the item layout

      The item layout, such as the text size, colour and font can be changed using the rich text editor. Click on the text area of an item and the rich text editor will be displayed. Certain questiontypes also have the possibility to adjust the text for ...
    • How do I attach a document to a questionnaire?

      If you want to add a downloadable document (or other file) to a survey you can do this by using the question editor and the filebrowser. Here are will create a simple survey that allows a panelist to download a instructions document. IMPORTANT: You ...
    • How can I import a custom design?

      If your preferred design cannot be created using the design generator, a custom design can be created using excel and imported. To import a design, go to the design page and click on the Import Design option. There are two types of designs you can ...
    • Direct Feedback, Panelist Feedback on a scale, Panelist Feedback

      Direct Feedback The direct feedback function provides the feedback live to panelists.  The mean and sd need to be specified for each attribute for each product, so you need to know ahead of the mean and the standard deviation value.  When panelists ...