lua-users home
lua-l archive

Re: Pattern matching proposal: %B to match balanced string with specified escape

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2016年01月05日 9:50 GMT+02:00 Rena <hyperhacker@gmail.com>:
> I also wonder about using %b with the same character twice, like: %b"" - the
> manual says it expects two different characters, but it'd be nice if we
> could do this.
I don't know why the manual says that. It works perfectly well with
the same character twice.
> string.match('abc"def"ghi"jkl"mno','%b""')
"def"

AltStyle によって変換されたページ (->オリジナル) /