[問題] RegEx的同一行搜尋?
<img src="1.gif"/>test<img src="2.gif">
我想要取得src內的文字
因此用pattern: <img.*src=".*"
RegEx是可以取得,該同一行只能取得1.gif,
除非我把第2個img斷行。
請問要如何在同一行取得兩個matches collection??
--
You're recommended to vist C_Sharp in PTT.
We are the C#, resistance is futile.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.137.160.225
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):