假設我有很長的文字。從下面的文字我只需要抽象部分。如何避免{{ }}
之間的文字。由於 `
{{ 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