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
https://forums.phpfreaks.com/topic/169158-solved-preg_match/
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
https://forums.phpfreaks.com/topic/169158-solved-preg_match/#findComment-892568
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.