如何找到一個正則表達式,可以找我只有網址的那些增值經銷商,PHP的正則表達式來查找位於空格之前
基本上沒有在URL後總是空白。
$var1 = 'http://www.asdasgdst.com/thebook.html Result: chosen nickname "doodoo"; success (from first page)';
$var2 = 'http://adfhdfdfcvxn.com/blog/2008/12/28/beginnings/comment-page-1/#comment-8203 Result: chosen nickname "zvika"; success (from first page);';
$var3 = 'http://sdfsd.sdfjstestgg.com/453980.html?mode=reply Result: chosen nickname "sharon"; success; not working;';
$var4 = 'http://www.yuuyok.net/index.php?sub=community&site=posts&thread_id= Result: chosen nickname "kelly"; success (from first page);';
如果有一個在** URL中的空間**? – Johnsyweb
應該是'%20' –