Set two flags in Java regex.Pattern

前端 未结 4 844
慢半拍i
慢半拍i 2020-12-28 13:38

I need a matcher like this:

Matcher kuchen = Pattern.compile(\"gibt es Kuchen in der K\\u00FCche\",Pattern.CASE_INSENSITIVE).matcher(\"\");

4条回答
  •  天涯浪人
    2020-12-28 14:40

    Though more pure using parameters, same as "(?iu)gibt es ..." without parameters. i = case-insensitive, u = unicode.

提交回复
热议问题