プロジェクトの場合、htmlText をフラッシュにインポートしてから、フラッシュが処理しないアイテムを削除しようとしています。たとえば、インポートしたい html には、カスタムの「[caption][/caption]」コードが含まれています。基本的に、これらの識別子とその間のテキストを削除して、フラッシュがテキスト フィールドに表示しないようにしたいと考えています。誰かが私に良い提案/例を持っていますか? これを行うために正規表現を使用する方法を理解しようとしてきましたが、適切なガイドを見つけることができず、失敗しました。
そして、私がフィルタリングしようとしているテキストの例:
<em>Pushmo</em> is a game filled with questions. How do I solve this puzzle? Is that a 8-bit Mario's face? Why is this old, obese blob making tons of death traps that easily ensnare and encase unsuspecting children?
[caption id="attachment_37414" align="alignleft" width="400" caption="The fat, red sumo goes into the most dangous place imaginable."]<a href="/2011/12/pushmo-review/pushmo-3ds-title-screen/" rel="attachment wp-att-37414"><img class="size-medium wp-image-37414" title="Pushmo-title" src="/2011/12/pushmo-3ds-title-screen-400x203.jpg" alt="Pushmo Title Screen" width="400" height="203" /></a>[/caption]
<em>Pushmo</em> is a downloadable puzzle game in the 3DS eShop. In <em>Pushmo</em> you take on the role of Mallo, an amorphic red sumo wrestler with the mind of an Einstienian savant.
識別テキストを検出し、それらの間のものをすべて削除できるようにしたいと考えています。誰でも私に与えることができる提案をいただければ幸いです。