regular expression

Discussion in 'Programming' started by ssimon171078, Feb 13, 2015.

  1. #1
    i need to receive number 527 from regular expression :
    my html code:
    <span class="labelbitdetail green"><i class="icon-thumbs-up norightmargin"></i> 527</span>
    i want to use php i think to use preg_match ()
    can you help me to create php code?
    i think
    preg_match(<span class=\"labelbitdetail green\">(.*?)<\/span>< class=\"icon-thumbs-up norightmargin\">/",$content,$aPages);
     
    ssimon171078, Feb 13, 2015 IP
  2. edduvs

    edduvs Well-Known Member

    Messages:
    394
    Likes Received:
    31
    Best Answers:
    3
    Trophy Points:
    160
    #2
    edduvs, Feb 17, 2015 IP