我尝试匹配包含在两个分隔符〈〉中的字符串< and >,如下所示:
Today is a <<beautiful day. \n How are you doing today?>>
我如何匹配分隔符之间的任何内容,而不考虑特殊字符?我想得到:beautiful day. \n How are you doing today?这是我目前掌握的情况:<<(.*?)>>
beautiful day. \n How are you doing today?
<<(.*?)>>
f1tvaqid1#
<<([\s\S]*?)>>
这应该匹配左分隔符<<(后跟零个或多个空格或非空格字符)和右分隔符>>
<<
>>
1条答案
按热度按时间f1tvaqid1#
这应该匹配左分隔符
<<
(后跟零个或多个空格或非空格字符)和右分隔符>>