6034
Views
8
Comments
Solved
Using Regex to validate text
Discussion

Hi All,

Could someone explain to me how to use Regex to validate:

There are no letters or symbols in an input text variable. What should be the entered in the pattern field for this?

Or please suggest some other better/easier method. I have looked into these components in Forge:
https://www.outsystems.com/forge/component/3308/restrict-chars-sample/?Unfollow=False

but it looks too advanced for my skills, prefer to keep it to server side validation for now. I am not very comfortable with JS or Jquery.

Thanks.


2019-05-22 11-30-09
Marcelo Ferreira
Solution

Hi André,

If you want to exclude letter and symbols it means you only want digits correct? "^\d+$" this regex used on regex_search returns false if the text contains anything other than a digit.

Regards,

Marcelo

2019-02-21 06-10-00
gurgen10

Marcelo Ferreira wrote:

Hi André,

If you want to exclude letter and symbols it means you only want digits correct? "^\d+$" this regex used on regex_search returns false if the text contains anything other than a digit.

Regards,

Marcelo

Hi

Can you help me with this issue.

https://www.outsystems.com/forums/discussion/47924/regex/#Post175764

2024-08-06 06-21-50
MEGHNA DUBEY
2018-08-04 18-19-00
André Pinho

Marcelo Thanks, that is exactly what I was looking for.
Where can I learn the syntax for Regex? So I can learn the other parameters I can use with this action.

2021-01-28 12-01-35
João Forte Carvalho

André P wrote:

Marcelo Thanks, that is exactly what I was looking for.
Where can I learn the syntax for Regex? So I can learn the other parameters I can use with this action.

I use this a lot when working with regex

https://regex101.com


2019-05-22 11-30-09
Marcelo Ferreira

Hi,

I use the same site as JoĂ£o.

Regards

2024-08-06 06-21-50
MEGHNA DUBEY

Please provide oml for regex_search

2018-08-04 18-19-00
André Pinho

it's an action search for it (Regex_Search).
Here is an example of how it is being used. you need to know what pattern you are trying to find. Use the link shared in this thread to give examples of those patterns and what they mean.
 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.