Jump to content

preg_match_all


phorcon3

Recommended Posts

thats the url:

 

url=/online/help/jump/?si=2P132.1kkC5O.3tog3u.W**&goto=/security/&f=c

 

how do i get the si value?

 

i tried

 

<?php

$url='<a href="javascript:void(0);" onclick="popup(\'url=/online/help/jump/?si=2P132.1kkC5O.3tog3u.W**&goto=/security/&f=c\');">Link</a>';

preg_match_all("/url=\/online\/help\/jump\/?si=(.*?)&goto=\/security\/&f=c\/",$url,$match);

echo $match[1][0];

?>

 

but that doesnt work ...probably screwed up the regex ...

Link to comment
https://forums.phpfreaks.com/topic/115712-preg_match_all/
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.