鸿蒙传说
你应该考虑使用一些 NLP 包将文本拆分成句子。然后使用^This\s+\S+\s+\S+\s+on\b它匹配一个以 wth 开头的字符串This,然后有两个包含任何非空白字符的单词,然后是单词on。见证明解释NODE EXPLANATION-------------------------------------------------------------------------------- ^ the beginning of the string-------------------------------------------------------------------------------- This 'This'-------------------------------------------------------------------------------- \s+ whitespace (\n, \r, \t, \f, and " ") (1 or more times (matching the most amount possible))-------------------------------------------------------------------------------- \S+ non-whitespace (all but \n, \r, \t, \f, and " ") (1 or more times (matching the most amount possible))-------------------------------------------------------------------------------- \s+ whitespace (\n, \r, \t, \f, and " ") (1 or more times (matching the most amount possible))-------------------------------------------------------------------------------- \S+ non-whitespace (all but \n, \r, \t, \f, and " ") (1 or more times (matching the most amount possible))-------------------------------------------------------------------------------- \s+ whitespace (\n, \r, \t, \f, and " ") (1 or more times (matching the most amount possible))-------------------------------------------------------------------------------- on 'on'-------------------------------------------------------------------------------- \b the boundary between a word char (\w) and something that is not a word char