[squeak-dev] The Inbox: Regex-Core-ct.61.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu Jul 8 01:02:52 UTC 2021

Yeah, I know, once I created this horrible meme:


(This actually was in production for some time.)

But seriously, regex escaping is kind of a standard operation IMHO. We also already have #escapeHtmlText and others on String. There are legit use cases, but clients should definitely double-check whether their scenario actually requires escaping.



Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
Gesendet: Donnerstag, 8. Juli 2021 01:38:28
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Inbox: Regex-Core-ct.61.mcz

> On 2021-07-07, at 11:30 PM, commits at source.squeak.org wrote:
> Adds String >> #escapeRegex to escape special characters in a string before composing it into another regex.

Take care with escaping special characters.

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Oxymorons: Business ethics

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210708/d2afe82c/attachment.html>

More information about the Squeak-dev mailing list