Jump to content

[SOLVED] preg_match


supermerc

Recommended Posts

hey,

 

Im using curl to go to a page and i want to get the hash for items, links look like this:

 

/trade.php?tradeWith=7210&addItem=6919211&addHash=894882156e40dd8eedf3bb5b94c9d5f9

 

What i have right now is:

 

$data = $result2;

preg_match('~/trade.php?tradeWith=7210&addItem=6919211&addHash=([^"\']*)"~i',$data,$matches);

 

but its returning empty.. anyone know why?

Link to comment
https://forums.phpfreaks.com/topic/165248-solved-preg_match/
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.