0
我使用Python和我有字符串看起來喜歡這樣的:如何匹配mediawiki框中包含換行符的字符串?
anything include {{infobox notperson anything include new line}}
anything
{{infobox person anything
many new lines and any charachter
}}
anything include {{infobox notperson anything include new line}}
,我想正則表達式這得到整個信息框人面積從{{信息框人到第一}}字符,是信息框區域的結尾。我應該使用哪種正則表達式?
Err ...''[^ \}] *'不匹配換行're.DOTALL' ... – Jerry
它的工作原理,但有沒有非python,只有正則表達式? – user3649714
@傑裏是的,它的工作原理沒有dotall :)感謝的人。 – user3649714