Jump to content

getting query string from href attribute!!


jmahdi

Recommended Posts

Hi

 

Im trying to pull N_ID=value in:

<a rel="gb_page_center[626, 267]" title="narrator" href="N_Details.php?N_ID=3280" style="text-decoration: none;">

 

i got regex like:

<a[^>]+href=\".*?\\(?:RawyID)=+(.*?)\">

but dont see it working

 

i need a regex that will: pull N_ID and disregard the existence/inexistence of the other attributes, such as : style , rel  or whatever..

 

 

thanks in advance

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.