Thread: Regex Help

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

    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Regex Help


    Hello friends,
    I need ur help with Regular Expression syntax..
    I need to trap the text inside the third inverted commas.

    For example:
    Code:
    ('EN', 'select_country', 'Select country'),
    ('EN', 'select_state', 'Select state'),
    ('EN', 'text_welcome', ''),
    ('EN', 'sitemap_clear_cache_info', 'If products, categories and etc... '),
    This is my desired output:
    Code:
    Select country
    Select state
    
    If products, categories and etc...
    Thanks Ahead!
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,867
    Rep Power
    6351
    explode() would be better for this task, since your patterns aren't variable.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo