On 2011-06-15, Alexander Hall <ha...@openbsd.org> wrote:
>> This dif fixes your problem here. Big question is of course: does it
>> break other cases?
>
> It differs from perl like this:
>
> $ echo 'l1_1' | perl -pe 's/1|$/X/g'
> lX_XX
> $ echo 'l1_1' | sed -E 's/1|$/X/g'
> lX_X
>
> Meaning we don't hit that final '$' if the last match went to eol.

perl regular expressions are expected to behave differently
to posix REs.

Reply via email to