Re: gsub bug? 2 results from anchored gsub
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: gsub bug? 2 results from anchored gsub
- From: Parke <parke.nexus@...>
- Date: 2015年7月27日 09:12:01 -0700
On Mon, Jul 27, 2015 at 12:28 AM, Sean Conner <sean@conman.org> wrote:
> (You may have to switch to LPEG ... )
Perhaps not.
print ( ('d//'):gsub ( '([^/])/*$', '%1/' ) )
print ( ('d//'):gsub ( '/*$', '/', 1 ) )
-Parke