我想匹配包含特定单词的所有字符串。喜欢:Stringregex=(?:\P{L}|\W|^)(ベスパ)(?:\b|$)但是,Pattern类不编译它:java.util.regex.PatternSyntaxException:Unmatchedclosing')'nearindex39(?:\P{L}|\W|^)((?:ベス|ベス|ヘズ)(?:パ)|パ)|ハ)゚)(?:\b|$)我已经设置了unicode_case来编译参数,不知道这里出了什么问题finalPatternpattern=Pattern.compile(regex,Pattern.CASE_INSENSITIVE|Pa