Javascript RegExp dosn't recognize apostrophe on mobile iOS

后端 未结 2 1682
青春惊慌失措
青春惊慌失措 2021-01-24 02:39

I have a form with three input.
The first is only number and for the other two I can accept all letters from A to Z, space and apostrophe.

HTML

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 03:10

    Thanks to @Wiktor Stribiżew for the help.
    The correct string is new RegExp("^[a-zA-ZÀ-ÿ ‘’']{2,60}$")
    I also have find this link that can help.

提交回复
热议问题