Skip to content Skip to sidebar Skip to footer

Using Ascii Regex With Html Input Pattern

Following JavaScript & regex : How do I check if the string is ASCII only? how do I use the ASCII-only regex (/^[\x00-\x7F]*$/) in pattern attribute in HTML? I wish to restrict

Solution 1:

Use pattern="[\x00-\x7F]+" - that did the trick. thanks! by Wiktor Stribiżew


Post a Comment for "Using Ascii Regex With Html Input Pattern"