in reply to Splitting on unusual regex
Within the constraints you've outlined, seems like this might work for you?
print for $s =~ m[( (?: \( [^)]+ \) ) | \S+ )]gx;; this is (some more) JOY code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Splitting on unusual regex
by dewey (Pilgrim) on May 14, 2007 at 04:24 UTC | |
by BrowserUk (Patriarch) on May 14, 2007 at 06:58 UTC | |
by dewey (Pilgrim) on May 14, 2007 at 08:45 UTC |