Sprad has asked for the wisdom of the Perl Monks concerning the following question:
I was thinking I could do something like this:
where $foo stands for "any character that isn't part of "/*". But I don't know how to say that.split(/,(?!$foo*\*\//, $str);
---
A fair fight is a sign of poor planning.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Splitting outside comments
by Roy Johnson (Monsignor) on May 03, 2006 at 18:37 UTC | |
|
Re: Splitting outside comments
by graff (Chancellor) on May 04, 2006 at 03:16 UTC | |
by Sprad (Hermit) on May 04, 2006 at 15:48 UTC | |
|
Re: Splitting outside comments
by philcrow (Priest) on May 03, 2006 at 20:47 UTC |