Regex How-To

Stable Version 1.0.0 (OutSystems 11)
Published on 4 Oct (4 weeks ago) by 
Created on 4 Oct (4 weeks ago)
How to use regex both on client side (for reactive and mobile) and on server side (for traditional web or server side operations). Provides also testing capabilities (avoiding publish to test the error-prone regex syntax) as well as the most common scenarios such as email, credit card, phone number validation among others.
Read More

This component has 3 goals:

  • Show how to use Regular expressions for both client side (use in Mobile and Reactive) as well as server side (use in Traditional web and server side operations);
  • Provide testing capabilities - regex syntax is quite error-prone and may be a tiresome task to test it, having to go back to your code, publish and refresh dependencies so you can see if it works as desired. With this component, you have a sandbox to try out our matches both client and server side;
  • Provide the regular expressions for the most common scenarios:
    • Validate dates (DD/MM/YYYY) - validates also the leap day (February 29th);
    • Validate credit card numbers;
    • Validate phone numbers;
    • Get domain from URL;
    • Validate IP address;
    • Get only letters from expression;
    • Get only numbers from expression;
    • Get only numbers and letters from expression;
    • Validates if there is at least one letter, one number and one special character (typical password use case)
    • Gets everything between commas
Reviews (0)
Samples & How-tos
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from João Marques who created this component.
See all 1 dependencies
Component Consumers
No consumers yet.
Weekly Downloads 
More from João Marques