作者yttytt (痞子貓熊...)
看板RegExp
標題[問題] 該如何寫出html換行的文字
時間Tue Oct 2 09:45:00 2012
/*
聽說註明使用的語言、環境
*
問題有可能較容易被解決...
*/
<img src="images/logo.gif" /></a></div>
<div class="counter" style="width: 61px; text-align: center;">
252公車</div>
因為碰到html有換行
請問該如何用正規法,抓出252公車這段文字呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 192.192.90.200
1F:→ ousapas:<div .+?>([\w\W]+?)</div> 10/03 12:11
2F:→ kilva:<div .+?>\s*([\w\W]+?)\s*</div> 10/03 21:19