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

2 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