What attribute can you use to specify a regular expression which describes a valid value for an input element? | Sololearn: Learn to code for FREE!

+5

What attribute can you use to specify a regular expression which describes a valid value for an input element?

6/27/2019 1:58:46 AM

Gaurav Singh

3 Answers

New Answer

+3

In which technology ?

+1

Sounds like you are talking about an HTML input element? If so it would be the `pattern` attribute: https://www.w3schools.com/tags/att_input_pattern.asp

0

Gaurav Singh see this code. It generates a regex from a given text:https://code.sololearn.com/c9bMO7j9R5J8/?ref=app