0
如果我必須包含它的中間某處這個HTML字符串:正則表達式組捕捉問題
<img src="http://images.domain.com/Images/hello.jpg" alt="Failed to Load" />
我會以剛剛獲得圖像文件的名稱中使用正則表達式是什麼?即hello.jpg
目前我使用此:
(?<front>.*<img.*src="http://images.domain.com/Images/)(?<imgName>.*)"(?<end>.*)
但是它找到了imgName組值是:
hello.jpg" alt="Failed to Load
有誰知道如何解決這個問題?
我知道,我讀過這些。純粹的藝術作品。 – 2010-06-20 14:52:19