Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net mvc regular expression enter

^[a-zA-Z0-9-_. ]*$ for textarea

I want to make available the enter as well in the following regular expression. How would I do that?

like image 343
maztt Avatar asked Aug 20 '26 05:08

maztt


1 Answers

Do you mean that you want to allow newline characters? That would be:

^[a-zA-Z0-9-_. \r\n]*$
like image 71
LukeH Avatar answered Aug 22 '26 22:08

LukeH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!