^[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?
Do you mean that you want to allow newline characters? That would be:
^[a-zA-Z0-9-_. \r\n]*$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With