SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2012
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Regular expressions

    nvm

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,245
    Mentioned
    156 Post(s)
    Tagged
    0 Thread(s)
    The problem you are having is due to the line breaks in your title attribute.

    I was able to get the title data returned using
    PHP Code:
    <?php
        $string 
    '<span title="1280 Acres, 2 Sections
    Secs 26&35-162-99">2SEC</span>'
    ;
        
    preg_match('/<span title="(.*?)">/ms'$string$matches);
        
    var_dump($matches);
    ?>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •