Please help:preg_replace function, need to match the given url

Discussion in 'PHP' started by eli03, Jun 1, 2010.

  1. #1
    Last edited: Jun 1, 2010
    eli03, Jun 1, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    $out = preg_replace('#^/taxonomy/term/\d+/\d+/\d+/#', 'something', $in);
     
    tolra, Jun 1, 2010 IP
  3. eli03

    eli03 Well-Known Member

    Messages:
    2,887
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    175
    #3
    working perfectly on my site. thanks :D
     
    eli03, Jun 1, 2010 IP
  4. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #4
    Glad to be of help :)
     
    tolra, Jun 1, 2010 IP