|
|
Choosing A Webhost: |
Re: [Boston.pm] Regexp puzzler: msg#00010lang.perl.perl-mongers.boston
On May 9, 2007, at 12:54 PM, Simon R wrote: > OK... I've been toying with this for a day now and it's time to set > the > experts loose. I need to be able to split a string of the form [...] > foo,bar,names="charlie,john,ann",ages='20,30,40' must be split to [...] > Can anyone come up with a single regexp that I can use in a call to > split() > that will handle this case, or another equally elegant solution ? Regular expressions are not well suited to that. You want Text::CSV or Text::CSV_XS. Charlton -- Charlton Wilbur cwilbur-AHvNe43NsMMnLIcjVmQCtA@xxxxxxxxxxxxxxxx
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [Boston.pm] Regexp puzzler, Andy Lester |
|---|---|
| Next by Date: | Re: [Boston.pm] Regexp puzzler, Ronald J Kimball |
| Previous by Thread: | Re: [Boston.pm] Regexp puzzler, Ronald J Kimball |
| Next by Thread: | Re: [Boston.pm] Regexp puzzler, Ronald J Kimball |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |