Forum Discussion

THE_BLUE's avatar
Icon for Cirrostratus rankCirrostratus
Nov 04, 2021

Parameter Value - Regular Expression

I want to restrict parameter value to accept date only, is below Regular Expression will work?


1 Reply

  • Hi, at first glance I would say, yes that will work.

    Is there a problem?

    Do watch out for the fact you are using the "^" and "$" to mark the begin and end of the input string to search on. They are typically used combined with the multiline-flag (/m)


    By the way, I like to use when building and testing regex.