[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: When to escape magic characters
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sat, 18 Jul 2015 21:33:06 +0200
I thought one always needed to escape for example *.
I was wrong.
$ lua
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> ("ab*c"):match"ab*"
ab
> ("ab*c"):match"ab?*"
ab*