[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 864
  • Last Modified:

Regex : Validation for multiline text area

Hi There

I am looking for regular expressions or ajax controls  that checks to see that there are only 160 characters typed into the text area and that there are only numbers and letters no funny characters.

Thanks
Stanton
0
Stanton_Roux
Asked:
Stanton_Roux
  • 2
1 Solution
 
wassa_rCommented:
Regex:

/^[a-zA-Z0-9]{1,160}$/
0
 
wassa_rCommented:
Forgot about the new lines, this will do:

'/^[a-zA-Z0-9\r\n]{1,160}$/'
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now