【发布时间】:2012-02-13 08:43:49
【问题描述】:
我有以下字符串,我想从 a href 标记中导出数字 (104321)。我怎样才能得出这个数字。
Hello this is testing string <a href=\"/testing/104321\">Ap</a><img src=\"Image Url" width=\"222\" height=\"149\"/><br/><br/>test\u00e4n p\u00e4\u00e4ll\u00e4 test, test\u00e4, test?
我希望最终的输出是这样的。
String[] strExample= {"testing", "104321","test\u00e4n p\u00e4\u00e4ll\u00e4 test, test\u00e4, test?"};
感谢任何帮助。
【问题讨论】:
标签: java android string pattern-matching arrays