Regex Help - Expression

Discussion in 'PHP' started by Sygon, May 14, 2008.

  1. #1
    What would be the expression to search for dyn.Img() and grab everything inside of the brackets

    so like:

    <?php $search = preg_match_all("Expression here",$content,$matches"); ?>
    PHP:
    Thanks
     
    Sygon, May 14, 2008 IP
  2. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #2
    #dyn\.img\(([^\)]+)\)#i
    Code (markup):
     
    joebert, May 14, 2008 IP
    Sygon likes this.
  3. Sygon

    Sygon Peon

    Messages:
    439
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks alot, worked.
     
    Sygon, May 14, 2008 IP