1

RSS フィードを介してブログの一連の投稿を解析しています。幸い、text() には一連の html タグが含まれています。replace() メソッドを使用しようとしましたが、次のエラーが発生しました:The method replace(char, char) in the type String is not applicable for the arguments (String, String) Here is my code: String stripString = mDesCollect.replace("{\\<.*?\\>}", ""ブラックベリー開発で。このテキストのタグを取り除く方法が必要ですか? テキストの例を次に示します。

<!-- [DocumentBodyStart:4accc09d-2c60-4371-956f-1293c4a9746a] --><div class="jive-rendered-content"><p>Hello everyone. Blessed be the God and Father of our Lord Jesus Christ, who hath blessed us with all spiritual blessings in heavenly places in Christ (Ephesians 1:3). </p><p>We're in the second week of this special month of preparation. We'll pray at 12noon, 5pm and 10pm (GMT+1) for 15min, speaking in tongues fervidly and declaring words of faith regarding any situation of concern. God bless you.</p></div><!-- [DocumentBodyEnd:4accc09d-2c60-4371-956f-1293c4a9746a] -->  

どうもありがとう、助けてくれてありがとう!

4

1 に答える 1

0

正規表現の使用は不適切な形式であるため(XHTMLの自己完結型タグを除く正規表​​現の一致オープンタグを参照)、http://jsoup.orgを参照してください。

于 2012-04-19T15:10:12.280 に答える