View Single Post
Old 06-20-2008, 12:01 PM   · #2
Bruce_KD
NamePros Member
 
Trader Rating: (1)
Join Date: Sep 2006
Posts: 78
NP$: 100.00 (Donate)
Bruce_KD will become famous soon enoughBruce_KD will become famous soon enough
You're not escaping any characters in the regex match.
The white space is also screws it up. If you really need that, there are workarounds, but (.*) excludes white space.

Code:
$data = str_replace("\n", '', file_get_contents('http://www.plurk.com/user/Toddish')); echo preg_match("/\<p id\=\"about_me\"\>(.*)<\/p\>/",$data,$match); print_r($match);



Bruce

P.S. I think this is the forum for code snippets you're sharing with others; it's parent forum (just "Programming") is for code help. Though I may be wrong, I'm fairly new


Please register or log-in into NamePros to hide ads
Bruce_KD is offline   Reply With Quote
Site Sponsors
Proof is in the Parking Pimps/RPG Game Script Hunting Moon
Advertise your business at NamePros
All times are GMT -7. The time now is 01:59 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.