[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Filtering chars from string
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 27 Aug 2019 11:26:16 -0300
> (And yes always putting in the escaping '%' works fine and is probably
> safer/simpler than a bunch of special cases if you're generating the set…)
You should not escape all letters because some of them represent
classes. For instance "[%d]" is the same as "[0123456789]". You can
escape all punctuation.