正規表現にあまり詳しくないので、ウィキペディアの項目のリストを解析する方法を見つける必要があります。ウィキペディアの api.php を使用してコンテンツを取得したところ、次のようなデータが残っています。
==Formal fallacies==
A [[formal fallacy]] is an error in logic that...
* [[Appeal to probability]] – takes something for granted because...
* [[Argument from fallacy]] – assumes that if an argument ...
* [[Base rate fallacy]] – making a probability judgement...
* [[Conjunction fallacy]] – assumption that an outcome simultaneously...
* [[Masked man fallacy]] – ...
===Propositional fallacies===
* [[Affirming a disjunct]] – concluded that ...
* [[Affirming the consequent]] – the [[antecedent...
* [[Denying the antecedent]] – the [[consequent]] in...
したがって、次のようにデータをプルする方法が必要です。
- * [[ で始まる行だけに注意を払っています。
- * [[ ]] の間は名前です
- - の後の残りの内容は説明です