Regex Validator set to multiline

Hello,
How do you set regex validator to validate multiline? Can regex validator set to validate multiline?
I tried adding the "/gm" at the end of the pattern but it does not work. I tried escaping the "/" but that didn't work.

Regex Pattern for range of ports:
^(?:[1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])(?:-(?:[1-9]\d{0,3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5]))?$/gm

I appreciate your help.

Hi @ceeceecarter,

The validator uses C# expressions and they don't accept /gm as an option. I don't think RadzenRegexValidator supports what you need. It uses RegexExpressionAttribute (from System.ComponentModel.DataAnnotations) under the hood which doesn't provide multiline support.

Hi korchev,

This information is very helpful. It helps me to look for a different approach in building my form using the RadzenRegexValidator.

Thank you!