2011-12-15 10 views
3

私はちょうど最初のインスタンスに一致したい、誰も私にこれを行う方法について知ってもらえますか?古典ASPの正規表現VB

'RegEx to get Image 
Dim re, matches, Img 
Set re = new RegExp  ' creates the RegExp object 
re.IgnoreCase = true 
re.Global = true 
re.Pattern = "<img.*(.|\n)*?/>" 
Set Matches = re.Execute(string) 
Img = "" 

For each Item in Matches 
    Img = Item.Value 
Next 

答えて