...

View Full Version : Resolved parse help



cosmicsea
01-24-2010, 04:23 PM
I am trying to grab the following information with my crawler and am having trouble with the format. I want to grab whatever number value is in this piece of html. like in this for example "148Mb".


<span class="size">| 148Mb</span>

here is what im trying to use that is not working

/<span class\=\"size\"\>\| ([\d+\.]{0,12} [A-Za-z]{2})\<\/span\>/

can someone help me get this correct please? Thanks.

cosmicsea
01-24-2010, 04:27 PM
its not displaying what i typed correctly so here it is with no tags.
/<span class\=\"size\"\>\| ([\d+\.]{0,12} [A-Za-z]{2})\<\/span\>/

MattF
01-24-2010, 04:28 PM
Untested:



'#<span class\=\"size\"\>\|.*?([\d]{0,12}[a-z]{2})\<\/span\>#i'

cosmicsea
01-24-2010, 04:36 PM
Untested:



'#<span class\=\"size\"\>\|.*?([\d]{0,12}[a-z]{2})\<\/span\>#i'


that seems to do alot more than what i had but it still is not grabbing the size.

cosmicsea
01-24-2010, 04:40 PM
nevermind it is working. there was an error with my coding. thanks alot for your help! :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum