假设我有很长的文字。从下面的文字我只需要抽象部分。如何避免{{ }}
之间的文字。由于 `
{{ Info extra text}}
{{Infobox film
| name = Papori
| released = 1986
| runtime = 144 minutes
| country = Assam, {{IND}}
| budget = [[a]]
| followed by = free
}}
Albert Einstein (/'ælb?rt 'a?nsta?n/; German: ['alb?t 'a?n?ta?n] (listen); 14 March 1879 – 18 April 1955)
was a German-born theoretical physicist who developed the theory of general relativity, effecting a
revolution in physics. For this achievement, Einstein is often regarded as the father of modern physics
and one of the most prolific intellects in human history.`
OUTPUT:
Albert Einstein (/'ælb?rt 'a?nsta?n/; German: ['alb?t 'a?n?ta?n] (listen); 14 March 1879 – 18 April 1955)
was a German-born theoretical physicist who developed the theory of general relativity, effecting a
revolution in physics. For this achievement, Einstein is often regarded as the father of modern physics
and one of the most prolific intellects in human history.
如果你真的* *只是询问如何维基百科的文章得到摘要,请注意,在[DBpedia中(http://dbpedia.org/罚款乡亲页面/ Albert_Einstein)使维基百科文章以结构化的方式可用(并且还处理wiki标记)。 –
@John Flatness DBpedia是否提供'API'? –
重复的[我的正则表达式工作不正常](http://stackoverflow.com/questions/8029633/my-regex-is-not-working-properly)和[关于正则表达式蟒蛇](http://stackoverflow.com/questions/8028729/rearding-regex-python) – agf