HTML5 Input Pattern Case-Insensitivity

前端 未结 2 465
独厮守ぢ
独厮守ぢ 2021-01-04 18:33

I\'m trying to create something right now and I need the pattern attribute that was introduced in html5 tp be case-insensitive but as far as I know, you can\'t

2条回答
  •  迷失自我
    2021-01-04 18:50

    Ok I think I figured out an easier way to do the pattern other than listing each combination.

    As an example, I'll use the word, "five".

    [fF][iI][vV][eE]
    

    so

    pattern="[fF][iI][vV][eE]"
    

提交回复
热议问题