Can Javascript RegExp do partial case insensitivity?

后端 未结 5 565
我寻月下人不归
我寻月下人不归 2021-01-14 14:35

I want to know if Javascript RegExp has the ability to turn on and off case insensitivity within the regular expression itself. I know you can set the modifier for the entir

5条回答
  •  北海茫月
    2021-01-14 14:48

    According to this reference page, Javascript supports:

    No mode modifiers to set matching options within the regular expression.

    So the answer is no, you cannot turn case sensitivity on or off within the regular expression.

提交回复
热议问题