+ 5

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

27th Jun 2019, 1:58 AM
Gaurav Singh
Gaurav Singh - avatar
3 ответов
+ 3
In which technology ?
27th Jun 2019, 6:57 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 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
21st Aug 2019, 8:41 PM
Jonathan Cross
Jonathan Cross - avatar
0
Gaurav Singh see this code. It generates a regex from a given text:https://code.sololearn.com/c9bMO7j9R5J8/?ref=app
3rd Nov 2020, 2:32 AM
Cristian Baeza Jimenez
Cristian Baeza Jimenez - avatar