Jump to content

[SOLVED] preg_match


supermerc

Recommended Posts

hey,

 

Im using curl to get a page and somewhere on the page it says

 

formraid.php?target=M615&h=1019c65257c6dd2ec4200602e83369c4

 

I want to do a preg_match that will get everything after formraid.php?target=

 

so for that example id need

 

M615&h=1019c65257c6dd2ec4200602e83369c4

 

anyone know how to do that?

Link to comment
Share on other sites

<div style="border-bottom:1px solid black;">
<a href="formraid.php?target=M615&h=a845528fd557c16535ff045a084cabc8"><img align="right" border="0" alt="Attack!" src="images/raidz.jpg"  onmouseover="popup(event,'Form new raid!');" onMouseOut="kill();"></a>
    					<a href="/mob.php?id=8048&h=a845528fd557c16535ff045a084cabc8" ONMOUSEOVER="popup(event,'<b>Last killed by</b>: †Noc Supremacy†')" ONMOUSEOUT="kill()"><font color="#009900">King Ashnar, Lord of the Unliving [275]</font></a>
    					</div>


Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.