Skip to main content
OutSystems

How to use regular expressions

Question

How do I use regular expressions to validate data from a form?

For example, UK post codes or phone numbers.

Answer

In your eSpace, add references to the actions Regex_Replace or Regex_Search.

Here are the steps:

  1. In your eSpace select File->Add/Remove References;

  2. Select the Text Extension and the Regex_Replace or Regex_Search Actions;

    regexp1.png

  3. You can now use those actions simply by dragging them from the left Tools Tree.

regexp2.png

  • Was this article helpful?