Preg match

Discussion in 'PHP' started by atlantaazfinest, Dec 17, 2008.

  1. #1
    Hey all what would be the best way to get

    http://b1.ac-images.myspacecdn.com/00841/12/32/841492321_m.gif
    Code (markup):
    out of the code below using preg_match i couldn't get the regex syntax quite right to do it thanks


    
    <table id="mainLayout">
    <tr>
    <td id="1a" width="304" height="300">
    
    
    <div id="profile_info" class="section">
    	<h4 class="heading">SykoRadio</h4><br />
    
        	
    	
    	<div id="profile_info_image">			
    		<a id="ctl00_cpMain_ctl01_ctl01_hlDefaultImage" rel="searchMonkey-photo" href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewAlbums&amp;friendID=11"><img src="http://b1.ac-images.myspacecdn.com/00841/12/32/841492321_m.gif" alt="SykoRadio"/></a>
    		
    		<center>View My:&nbsp;<a id="ctl00_cpMain_ctl01_ctl01_ctrlViewMorePics" rel="searchMonkey-viewPictures" href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewAlbums&amp;friendID=11">Pics</a>  | <a href="http://vids.myspace.com/index.cfm?fuseaction=vids.showvids&friendID=11&n=11&MyToken=48fe548f-6a21-484e-9bb4-8683f920fcad">Videos</a> 	</center>
    	</div>
    	
    	    <div id="profile_info_content" class="text">
    		    <span id="profile_info_headline">"Sykoradio.org - Music for the Kultured"</span><br /><br />
    
    
    
    Code (markup):
     
    atlantaazfinest, Dec 17, 2008 IP
  2. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I've edited this post - I think I understand now!

    841492321_m.gif

    That's the filename - do you want that or the full path?
     
    Yesideez, Dec 17, 2008 IP
  3. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    atlantaazfinest, Dec 17, 2008 IP
  4. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry now I don't have a clue what you're asking...
     
    Yesideez, Dec 17, 2008 IP
  5. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yea you are on the right track yea i want the full path
     
    atlantaazfinest, Dec 17, 2008 IP
  6. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Try:
    http.*(jpe?g|gif|png)
    Code (markup):
    Not that great at regex...
     
    Yesideez, Dec 17, 2008 IP
  7. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i need it to be more exact because the page has tons of image links.
     
    atlantaazfinest, Dec 17, 2008 IP
  8. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Everything I'm trying is selecting this:
    http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewAlbums&amp;friendID=11"><img src="http://b1.ac-images.myspacecdn.com/00841/12/32/841492321_m.gif
    Code (markup):
     
    Yesideez, Dec 17, 2008 IP
  9. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Same thing that happen to me or its picking other images.
     
    atlantaazfinest, Dec 17, 2008 IP
  10. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #10
    If you want to get more exact heres more of the source

    
    onmouseout="msglobalnav.subToggle('1999999',false);"><li class="divider"><a href="http://www.myspace.com/index.cfm?fuseaction=splash.more">More on MySpace</a></li><li><a href="http://apps.myspace.com/index.cfm?fuseaction=apps">Apps Gallery</a></li><li><a href="http://classifieds.myspace.com/?cm_mmc_o=FYl5zgwCjCAlzCjCFzbEEzMCjCFzbEEzM">Classifieds</a></li><li><a href="http://events.myspace.com/">Events</a></li><li><a href="http://forums.myspace.com/?fuseaction=forums.home">Forums</a></li><li><a href="http://groups.myspace.com/index.cfm?fuseaction=groups.categories">Groups</a></li><li><a href="http://collect.myspace.com/index.cfm?fuseaction=schools.main">Schools</a></li><li class="divider"><a href="http://blog.myspace.com/">Top Blogs</a></li><li><a href="http://www.myspace.com/myspaceim">IM</a></li><li class="divider"><a href="http://www.myspace.com/myspacemobile">Mobile</a></li><li class="last"><a href="http://celebrity.myspace.com/index.cfm?fuseaction=celebrity">Celebrity</a></li><li class="last"><a href="http://comedy.myspace.com/">Comedy</a></li><li class="last"><a href="http://games.myspace.com/?refid=myspace2">Games</a></li><li class="last"><a href="http://www.myspace.com/index.cfm?fuseaction=impact">IMPACT</a></li><li class="last"><a href="http://ksolo.myspace.com/">Karaoke</a></li><li class="last"><a href="http://movies.myspace.com/">Movies</a></li></ul><ul id="subNav2500000" onmouseover="msglobalnav.subToggle('2500000',true);" onmouseout="msglobalnav.subToggle('2500000',false);"><li><a href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=11&MyToken=8c83b621-bbc3-46e4-bbac-c404382941aa">Send Message</a></li><li><a href="http://collect.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=11&MyToken=8c83b621-bbc3-46e4-bbac-c404382941aa">Add to Friends</a></li><li><a href="http://comment.myspace.com/index.cfm?fuseaction=user.viewProfile_commentForm&friendID=11&MyToken=8c83b621-bbc3-46e4-bbac-c404382941aa">Add Comment</a></li><li><a href="javascript: IsMySpaceIMInstalled();">Instant Message</a></li><li><a href="http://groups.myspace.com/index.cfm?fuseaction=groups.addtogroup&friendID=11">Add to Group</a></li><li><a href="http://messaging.myspace.com/index.cfm?fuseaction=mail.forward&f=forwardprofile&friendID=11">Forward to Friend</a></li><li><a href="http://collect.myspace.com/index.cfm?fuseaction=user.addToFavorite&public=0&friendID=11">Add to Favorites</a></li><li class="divider"><a href="http://friends.myspace.com/index.cfm?fuseaction=block.blockUser&userID=11">Block User</a></li><li class="last"><a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=11">Profile</a></li><li class="last"><a href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewPicture&friendID=11">Photos</a></li><li class="last"><a href="http://vids.myspace.com/index.cfm?fuseaction=vids.showvids&friendID=11&n=11&MyToken=8c83b621-bbc3-46e4-bbac-c404382941aa">Videos</a></li><li class="last"><a href="http://blog.myspace.com/index.cfm?fuseaction=blog.ListAll&friendID=11">Blogs</a></li><li class="last"><a href="http://bulletins.myspace.com/index.cfm?fuseaction=bulletin.ShowMyBulletins&friendID=11">Bulletins</a></li></ul><iframe frameborder="0" id="framer"></iframe></div>
    
    <script type="text/javascript">//<![CDATA[
    MySpace.Header.Navigation.OnAfterRender();
    //>]]>
    </script></td></tr></table></div>
    </div>
    <!--[if lte IE 6]>
    <script type="text/javascript">
    msglobalnav.applyAlphaImageLoader('googlebar', 'http://x.myspacecdn.com/modules/common/static/img/header/bkg_msbar.png', 'scale');
    msglobalnav.applyAlphaImageLoader('mshomelink', 'http://x.myspacecdn.com/modules/common/static/img/header/en-us/mslogo.png', 'crop');
    msglobalnav.applyAlphaImageLoader('googleLogo_Header', 'http://x.myspacecdn.com/modules/common/static/img/header/en-us/poweredbyGoogle.png', 'crop');
    msglobalnav.applyAlphaImageLoader('topnav', 'http://x.myspacecdn.com/modules/common/static/img/header/bkg_menubar.png', 'scale');
    </script>
    <![endif]-->
    <style type="text/css">
    DIV#shortcuts{display:none !important;}
    </style><!-- EOH -->
    
    		     
    		
    		
    	
    	
    	
    	
    
    <img src="http://onlinenow.myspace.com/OnlineNow/UserStatusChange.html?UserID=23675382&online=1&visible=1&id=38562" width="1" height="1" style="display:none" alt=""/>
    
    	
    	
    	
    	
    	
    	
    	
    
    
    
    
    
    <table id="mainLayout">
    <tr>
    <td id="1a" width="304" height="300">
    
    
    <div id="profile_info" class="section">
    
    	<h4 class="heading">SykoRadio</h4><br />
        	
    	
    	<div id="profile_info_image">			
    		<a id="ctl00_cpMain_ctl01_ctl01_hlDefaultImage" rel="searchMonkey-photo" href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewAlbums&amp;friendID=11"><img src="http://b1.ac-images.myspacecdn.com/00841/12/32/841492321_m.gif" alt="SykoRadio"/></a>
    		
    		<center>View My:&nbsp;<a id="ctl00_cpMain_ctl01_ctl01_ctrlViewMorePics" rel="searchMonkey-viewPictures" href="http://viewmorepics.myspace.com/index.cfm?fuseaction=user.viewAlbums&amp;friendID=11">Pics</a>  | <a href="http://vids.myspace.com/index.cfm?fuseaction=vids.showvids&friendID=11&n=11&MyToken=5d53bc39-51b0-4a77-8ab2-c159cff128f2">Videos</a> 	</center>
    	</div>
    	
    	    <div id="profile_info_content" class="text">
    
    		    <span id="profile_info_headline">"Sykoradio.org - Music for the Kultured"</span><br /><br />
    		    Male<br />
    		    30 years old<br /><br />
    		    Columbus, OHIO<br />
    		    United States<br />
        		
    		    
    
    
    <br />
    
    
        				
    		    Last Login: <span class="searchMonkey-lastLogin">07/23/08</span>
    	    </div>
    	
    	<div class="clear"></div>
    </div>
        
        <div id="profile_contact" class="section">
    	    <h5 class="heading">Contacting&nbsp;SykoRadio</h5>
    
    	    <a href="http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=11&MyToken=5d53bc39-51b0-4a77-8ab2-c159cff128f2" id="ctl00_cpMain_ctl01_ctl02_MailLink" rel="searchMonkey-sendMessage"><img id="mailLinkImg" src='http://x.myspacecdn.com/modules/profiles/static/img/contact_sendmailicon.gif' alt="" />Send Message</a>
    	    <a href="http://messaging.myspace.com/index.cfm?fuseaction=mail.forward&friendID=11&f=forwardprofile" id="ctl00_cpMain_ctl01_ctl02_ForwardLink"><img id="forwardLinkImg" src='http://x.myspacecdn.com/modules/profiles/static/img/contact_forwardmailicon.gif' alt="" />Forward to Friend</a>
    	    <a href="http://friends.myspace.com/index.cfm?fuseaction=invite.addfriend_verify&friendID=11" id="ctl00_cpMain_ctl01_ctl02_AddFriendLink" rel="searchMonkey-addToFriends"><img id="addFriendLinkImg"  src='http://x.myspacecdn.com/modules/profiles/static/img/contact_addfriendicon.gif'   alt="" />Add to Friends</a>
    	    <a href="http://collect.myspace.com/index.cfm?fuseaction=user.addToFavorite&friendID=11&public=0" id="ctl00_cpMain_ctl01_ctl02_AddFavoriteLink"><img id="addFavoriteLinkImg"  src='http://x.myspacecdn.com/modules/profiles/static/img/contact_addfavoritesicon.gif'  alt="" />Add to Favorites</a>
    	    <a href="javascript: IsMySpaceIMInstalled();" id="ctl00_cpMain_ctl01_ctl02_MessageFriendLink"><img id="messageFriendLinkImg"   src='http://x.myspacecdn.com/modules/profiles/static/img/contact_messagefriend.gif'  alt="" />IM / Call</a>
    	    <a href="http://friends.myspace.com/index.cfm?fuseaction=block.blockUser&userID=11" id="ctl00_cpMain_ctl01_ctl02_BlockFriendLink" onclick="return confirm('Are you sure you want to block this user?\n- to block this user, hit OK\n- otherwise, hit Cancel');"><img id="blockFriendLinkImg"  src='http://x.myspacecdn.com/modules/profiles/static/img/contact_blockuser.gif'  alt="" />Block User</a>
    
    	    <a href="http://groups.myspace.com/index.cfm?fuseaction=groups.addtogroup&friendID=11" id="ctl00_cpMain_ctl01_ctl02_AddToGroupLink"><img id="addToGroupLinkImg"  src='http://x.myspacecdn.com/modules/profiles/static/img/contact_addtogroupicon.gif'  alt="" />Add to Group</a>
    	    <a href="http://collect.myspace.com/index.cfm?fuseaction=RateImage.UserRating&UserID=11" id="ctl00_cpMain_ctl01_ctl02_RateFriendLink"><img id="rateFriendLinkImg"  src='http://x.myspacecdn.com/modules/profiles/static/img/contact_rankusericon.gif'  alt="" />Rank User</a>
    	    <div class="clear"></div>
        </div>
        
    	<div id="profile_url" class="section">
    		<h5 class="heading">MySpace URL:</h5>
    		<span class="searchMonkey-displayURL"><a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewProfile&friendID=11">myspace.com/sykoradio</a></span>
    
    	</div>
    
    <script type="text/javascript" language="JavaScript">siteURL = "http://www.myspace.com/"</script>
    <script type="text/javascript" language="JavaScript" src="http://x.myspacecdn.com/modules/common/static/js/highlightinterests2.js"></script>
    <div id="profile_interests" class="section">
    	<h5 class="heading">SykoRadio's Interests</h5>
    	<table class="cols">
    		
    		
    	</table>
    </div>
    
    		<div id="profile_details" class="section">
    			<h5 class="heading">SykoRadio's Details</h5>
    			<table class="cols">				
    					<tr id="Profileprofile_details_status"><th><label class="innerlabel">Status:</label></th><td>Single</td></tr><tr id="Profileprofile_details_hereFor"><th><label class="innerlabel">Here for:</label></th><td>Networking, Friends</td></tr><tr id="Profileprofile_details_zodiacSign"><th><label class="innerlabel">Zodiac Sign:</label></th><td><a href="http://collect.myspace.com/index.cfm?fuseaction=horoscope&sign=6&MyToken=5d53bc39-51b0-4a77-8ab2-c159cff128f2">Virgo</a></td></tr>
    			</table>
    		</div>
    
        <div id="profile_networking" class="section">
    	    <h5 class="heading">SykoRadio's Networking</h5>
    		    <table class="cols">
    		    
    			    <tr id="profile_networking_topic_0">
    				    <th>
    					    <a href="http://search.myspace.com/index.cfm?fuseaction=find.findTalent&Mytoken=20050519172458&category=5&searchType=talentNetwork&photos=0" id="ctl00_cpMain_ctl01_ctl08_networkRepeater_ctl00_linkCategory" title="Music">Music</a> - 
    					    <a href="http://search.myspace.com/index.cfm?fuseaction=find.findTalent&Mytoken=20050519172458&category=5&skill=16&searchType=talentNetwork&photos=0" id="ctl00_cpMain_ctl01_ctl08_networkRepeater_ctl00_linkSkill" title="Live">Live</a> - 
    					    <a href="http://search.myspace.com/index.cfm?fuseaction=find.findTalent&Mytoken=20050519172458&category=5&skill=16&role=35&searchType=talentNetwork&photos=0" id="ctl00_cpMain_ctl01_ctl08_networkRepeater_ctl00_linkRole" title="Other">Other</a>					    
    				    </th>
    
    			    </tr>
    			    <tr id="profile_networking_description_0">
    				    <td class="text">
    					    Online Radio Station!
    				    </td>
    			    </tr>
    			    
    		    </table>
    	    
        </div></td><td id="1b" width="435">
    
    
    <div id="profile_network" class="section">
    	    <span id="ctl00_cpMain_ctl01_ctl10_ctrlMessage" class="searchMonkey-standardUserStatus">SykoRadio is rearming.</span>
    	</div>
        
    <br />
    
    
    
        <div id="profile_blog" class="section">
    	    <h5 class="heading">SykoRadio's Latest Blog Entry&nbsp;[<a href='http://blog.myspace.com/index.cfm?fuseaction=blog.Confirm&friendID=11&action=subscribe&MyToken=5d53bc39-51b0-4a77-8ab2-c159cff128f2'>Subscribe to this Blog</a>] </h5>
    
    	    <ul id="profile_blog_subjects">
    			
    					<li id="profile_blog_subject_0">
    						New Interview: Hideous Pink&nbsp;
    						(<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=11&blogID=280723208">view more</a>)<br><br>
    					</li>
    				
    					<li id="profile_blog_subject_1">
    						NEW MUSIC!&nbsp;
    
    						(<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=11&blogID=280722702">view more</a>)<br><br>
    					</li>
    				
    					<li id="profile_blog_subject_2">
    						Music Submissions Open for from 15 JUNE to 21 JUNE&nbsp;
    						(<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=11&blogID=275699278">view more</a>)<br><br>
    
    					</li>
    				
    					<li id="profile_blog_subject_3">
    						New interview coming up&nbsp;
    						(<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=11&blogID=262873379">view more</a>)<br><br>
    					</li>
    				
    					<li id="profile_blog_subject_4">
    						SYKORADIO IS SEEKING NEW DJs!&nbsp;
    
    						(<a href="http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=11&blogID=226689104">view more</a>)<br><br>
    					</li>
    				
    			
    	    </ul>
    	    [<a href='http://blog.myspace.com/index.cfm?fuseaction=blog.ListAll&friendID=11'>View All Blog Entries</a>]
        </div>
    
    <div id="profile_blurbs" class="section">
    	<h5 class="heading">
    
    		SykoRadio
    		's Blurbs</h5>
    	<div id="profile_blurbs_aboutMe">
    		<h5 class="heading">
    			About me:
    		</h5>
    			<span class="text"><p><h4>Welcome to Sykoradio.net!</h4>
    &nbsp;&nbsp;&nbsp;Welcome to Sykoradio.  Your <strong>TRUE</strong> alternative radio station.  Giving you contrary to the main stream radio music you are subjected to on a daily basis.   Instead of having to scour the airwaves to find a station that adheres to your needs, you can chose 1 station.  Browse through our DJ's blogs and playlists to find the DJ that's right for you! <br>
    
    <CENTER>
    <h2>WE ARE NOT ACCEPTING NEW MUSIC SUBMISSIONS AT THIS TIME!</h2><br>
    Check Back soon for updates!
    
    <hr width="85%" noshade><BR>
      <P> Sykoradio Dialup (low bandwith) via our HTML Player!<br>
        You can also access the stream directly <a href="http://www.msplinks.com/MDFodHRwOi8vMzguOTYuMTQ4LjMyOjk5ODAvbGlzdGVuLnBscw==" Target="_blank">here</a>. </p>
    
    </CENTER>
    <CENTER><object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="60" width="320" data="http://www.sykoradio.net/graphics/sykoradio_mini_banner.swf">
    
      <param name="allowScriptAccess" value="never" />
      <param name="allowNetworking" value="internal" />
      <param name="movie" value="http://www.sykoradio.net/graphics/sykoradio_mini_banner.swf" />
      <param name="quality" value="high" />
    </object></CENTER><CENTER>
    <object type="application/x-mplayer2" classid="6BF52A52-394A-11d3-B153-00C04F79FAA6" allowScriptAccess="never" allowNetworking="internal" height="47" width="320">
      <param name="allowScriptAccess" value="never" />
      <param name="allowNetworking" value="internal" />
      <param name="InvokeURLs" value="0" />
      <param name="fileName" value="http://38.96.148.32:9980/" />
    
      <param name="URL" value="http://38.96.148.32:9980/" />
      <param name="src" value="http://38.96.148.32:9980/" />
      <param name="showstatusbar" value="true" />
    </object>
    <BR></CENTER></span>
    	</div>
    	<div id="profile_blurbs_likeToMeet">
    		<h5 class="heading">
    			Who I'd like to meet:
    		</h5>
    
    			<span class="text"></span>
    	</div>
    </div>
    
    
        <div id="profile_calendar" class="section">
    	   <h5 class="heading"><span class="left">SykoRadio's Calendar</span><span class="right">( <a href="http://events.myspace.com/index.cfm?fuseaction=mycalendar&eUserId=11&eUserName=SykoRadio" class="whitelink">View All</a> )</span><br class="clear" /></h5>
    	    <table id="calendar" class="cols">
    
    			    
    					    <tr id="profile_calendar_0">
    						    <th>
    							    12/23/2008
    							    8:00 PM
    						    </th>
    						    <td>
    							    <a href="http://events.myspace.com/index.cfm?fuseaction=mycalendar&eUserId=11&eUserName=SykoRadio&calViewDate=12-23-2008&eID=329600">DJ Winter's Etherea <img src=http://x.myspacecdn.com/modules/profiles/static/img/repeat_10x11.gif  width=10 height=11 border=0 alt="(rep)"></a>
    						    </td>
    						    <td>
    							    @ http://www.sykoradio.net/ 
    						    </td>
    
    					    </tr>
    				    
    					    <tr id="profile_calendar_1">
    						    <th>
    							    12/17/2008
    							    10:00 PM
    						    </th>
    						    <td>
    							    <a href="http://events.myspace.com/index.cfm?fuseaction=mycalendar&eUserId=11&eUserName=SykoRadio&calViewDate=12-17-2008&eID=960732">DJ Durendal's "Chapel Perilous" <img src=http://x.myspacecdn.com/modules/profiles/static/img/repeat_10x11.gif  width=10 height=11 border=0 alt="(rep)"></a>
    						    </td>
    						    <td>
    
    							    @ http://www.sykoradio.net/ 
    						    </td>
    					    </tr>
    				    
    					    <tr id="profile_calendar_2">
    						    <th>
    
    Code (markup):
     
    atlantaazfinest, Dec 17, 2008 IP
  11. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I think I've cracked it!
    http([^"]*)(jpe?g|gif|png)
    Code (markup):
     
    Yesideez, Dec 17, 2008 IP
  12. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I've spent all this time in Google hunting through tons of websites trying to get that done - I've been using a program called RegexBuddy to display in real-time what effect the regex has on a chunk of text.

    This works as well - don't know if it's safer or not...
    http([^("|')]*)(jpe?g|gif|png)
    Code (markup):
    Screenshot of my PC running RegexBuddy on your text:
    img368.imageshack.us/my.php?image=regexze2.jpg
     
    Yesideez, Dec 17, 2008 IP
    atlantaazfinest likes this.
  13. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Niiiiiice!

    After spending about an hour trying to help this guy I get no thanks and no rep!
     
    Yesideez, Dec 18, 2008 IP
  14. DigitalChuck

    DigitalChuck Peon

    Messages:
    241
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #14
    It helps me :D - THANKS!!!!
     
    DigitalChuck, Dec 18, 2008 IP
  15. herbacious

    herbacious Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    bummer - what can you do?
     
    herbacious, Dec 19, 2008 IP
  16. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Not a lot.

    It's not stopping me from helping when I can though. Will just have to remember this individual...
     
    Yesideez, Dec 19, 2008 IP
    Smyrl likes this.
  17. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Lol my bad thanks .. but imma post up the code i used it might help others too. after looking through some regex functions noticed all i needed was to use a ? after my .* i was using Regex buddy also just couldn't get the .* not to select so much stuff adding a ? after it worked though so this is what i got

    preg_match('/rel="searchMonkey-photo".*?<img.*?src="(.*?)"/sim', $strSource, $matches2);
     	$stuff['imageURL'] = $matches2[1];
    Code (markup):
     
    atlantaazfinest, Dec 19, 2008 IP
  18. Yesideez

    Yesideez Peon

    Messages:
    196
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #18
    No problem - did you get it working as you wanted in the end?
     
    Yesideez, Dec 19, 2008 IP
  19. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Yea with the code above i notice when i was just using .* it was collecting to much data but if u do .*? it stops when it gets to your next piece to exactly match. thanks.
     
    atlantaazfinest, Dec 19, 2008 IP