regex help
Posted: Tue Dec 30, 2008 2:31 am
I am parsing a list of URLs
the urls where before
http://www.example.com/j_d.php?j_i=1111
now they are
http://www.example.com/j_d/1111/random_text
Before I had this match pattern
if (preg_match_all('/href=["\']j_d\.php\?j_i=(\d+)/', $html, $m)) {
Now I am trying to figure out the new one
if (preg_match_all('/href=["\']j_d\(\d+)\*', $html, $m)) {
but cannot! Help me out please:!)
the urls where before
http://www.example.com/j_d.php?j_i=1111
now they are
http://www.example.com/j_d/1111/random_text
Before I had this match pattern
if (preg_match_all('/href=["\']j_d\.php\?j_i=(\d+)/', $html, $m)) {
Now I am trying to figure out the new one
if (preg_match_all('/href=["\']j_d\(\d+)\*', $html, $m)) {
but cannot! Help me out please:!)