Right Associative Matching Example (for Docs)
Chris Babcock <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Organization | ASCII King Games |
| Message-ID | <[email protected]> |
Use right associative matching when working with tabular data and you want to match columns near the end of the line. For example, parsing a CSV file with /(?i:":*:email:".+?"([[:print:]]+?)".+?\n)/ matches the column after :email: while /(?ir:":*:email:".+?"([[:print:]]+?)".+?\n)/ matches the last column on the line. Chris ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/