Regex: ignore case sensitivity

后端 未结 13 2064
孤城傲影
孤城傲影 2020-11-22 06:11

How can I make the following regex ignore case sensitivity? It should match all the correct characters but ignore whether they are lower or uppercase.

G[a-b]         


        
13条回答
  •  面向向阳花
    2020-11-22 06:55

    You also can lead your initial string, which you are going to check for pattern matching, to lower case. And using in your pattern lower case symbols respectively .

提交回复
热议问题