#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    9
    Rep Power
    0

    Question WHy don't I get TITLE group?


    Code:
    <title><\x21\x5B CDATA \x5B
    (?<WHOLETITLE>.*?
    
    (
    \x28
    (?<TITLE>
    
    .+?
    
    )
    \x29
    )
    {0,1}
    
    .*?
    )
    \x5D\x5D></title>

    Text to be processed:

    <title><![CDATA[2003 Honda Civic 2dr Cpe LX Auto ( DALLAS ) $7495]]></title>
    It returns TITLE groupp empty. WHy?
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,180
    Rep Power
    9398
    1. What is the entire expression - not just the text you're using?
    2. Why aren't you using some sort of DOM or XML parsing utility?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    9
    Rep Power
    0

    Question


    Ok, took this in attention. But why

    Code:
    (?<WHOLETITLE>.*?
    
    (
    \x28
    (?<TITLE>
    
    .+?
    
    )
    \x29
    )
    {0,1}
    
    .*?
    )
    returns nothing for

    ha - 07 HONDA CIVIC Si *ipod conn./leather/spoiler* CALL FOR FINANCING $16893
    and works correctly for

    ha - 07 HONDA CIVIC Si *ipod conn./leather/spoiler* CALL FOR FINANCING (PLANO) $16893

IMN logo majestic logo threadwatch logo seochat tools logo