gregor herrmann <gre...@debian.org> writes:

> Sounds as if we need something like a "zero-width negative
> look-behind assertion" (I had to copy this from perlre :)).

> foreach (grep { $_ } split /(?<!\\)\s+/, $data->{"files-excluded"}) {
>   s?\\??g; # to keep the style of what's in uscan ...
>   say $_;                                                            
> }

The trouble with this approach is that it mis-splits:

    foo\\ bar

which should become "foo\" and "bar".  You need a negative look-behind
assertion that accepts an odd number of backslashes, at which point you
run into the problem that negative look-behind assertions have to be
fixed-length.

-- 
Russ Allbery (r...@debian.org)               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to