0
我必须解析大的HTML文本文件并提取符合特定模式的子字符串。例如:如何提取匹配模式的子字符串?
<span id='report-9429'>Report for May 2009</span>
A lot of code and text.
<span id='report-10522'>Report for Apr 2009</span>
A lot of code and text.
<span id='report-15212'>Report for Apr 2009</span>
其中9429,10522和15212是我必须得到的部分子串。该文件包含许多这些,我需要得到所有这些。
Cocoa中是否有某种RegExp功能?那么这样的RegExp会是怎样的呢?