我想在这些情况下请求创建正则表达式的帮助:
text #test I want this ## text
→I want this
text #test with # inside ## text
→with # inside
text #test with # inside ## text #test something ##
→with # inside
,其次,与something
我有#test(.+)##
但这在最后一种情况下不起作用:.filterNot { ... }
换句话说,它需要以#test
开头,并始终以##
结束,并寻找另一个#test ##
块