-1
我很努力想出一個正則表達式來查找用方括號包住的任何字符串。 我有一個巨大的文件含有很多這樣的段落維基百科刮:正則表達式:查找任何包在方括號中的字符串
"Theology translates into English from the Greek theologia (θεολογία) which derived from Τheos (Θεός), meaning "God," and -logia (-λογία),**[12]** meaning "utterances, sayings, or oracles" (a word related to logos **[λόγος][Citation needed]**".
期望的結果將是:
"Theology translates into English from the Greek theologia (θεολογία) which derived from Τheos (Θεός), meaning "God," and -logia (-λογία), meaning "utterances, sayings, or oracles" (a word related to logos".
任何建議,將不勝感激。 謝謝!
最好的建議是讓你的問題更精確,告訴我們什麼你到目前爲止已經嘗試過了,並且在編程語言和正則表達式上做了一些閱 – Jan