RegEx Test

Hello,
Here is a script to test a string of characters according to a RegEx.
For example, this is a test for a phone number.
The parameters are:
RegEx: RegEx format directly or via a text column (do not include / at the beginning and at the end)
Text: String to test
ReturnTrue: a column or a string or a value to return if the string matches the regex.
ReturnFalse: a column or a string or a value to return if the string does not conform to the regex.

link for YC
https://RegEx-Test.manun2.repl.co

Source
https://replit.com/@ManuN2/RegEx-Test?v=1

9 Likes

Hi @Manu.n,
This code is great, many thanks for building it.
How do you build the visibility of the messages based on test?
For example, your “bad” message will appear starting from the first digit inputted by the user and it’ll disappear only once user fulfills the RexEx requirement.
Any idea how to make this message show up only after user stops typing, or any other solution?
Thanks