in reply to Re: Regular expression double grouping negation headache
in thread Regular expression double grouping negation headache
Which is cute. Except it fails under some conditions. Let's say you want to give the variable 'foo' the value of 'moo shoo= coo'. I'd assume it would be written 'foo=moo shoo\= coo'. Except your example doesn't allow for this.%defaults = map {(/(.*?)=(.*)/)} @ARGV;
$line = 'foo=moo sho=clue\ woo\=moo'; @pairs = split(/(?<!\\)\s/, $line);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Doesn't seem complete
by dreadpiratepeter (Priest) on Jun 29, 2002 at 22:21 UTC | |
by tlhf (Scribe) on Jun 30, 2002 at 22:48 UTC | |
by dreadpiratepeter (Priest) on Jun 30, 2002 at 23:08 UTC | |
by tlhf (Scribe) on Jun 30, 2002 at 23:32 UTC | |
|
Re: Doesn't seem complete
by Aristotle (Chancellor) on Jun 29, 2002 at 22:20 UTC |