<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Yeah, I know, once I created this horrible meme:</p>
<p><a href="https://twitter.com/bpfn2020/status/1225431875923124225/photo/1" class="x_OWAAutoLink" id="LPlnk968170" style="font-size:12pt">https://twitter.com/bpfn2020/status/1225431875923124225/photo/1</a><br>
</p>
<p>(This actually was in production for some time.)</p>
<p><br>
</p>
<p>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.</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim@rowledge.org><br>
<b>Gesendet:</b> Donnerstag, 8. Juli 2021 01:38:28<br>
<b>An:</b> The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Regex-Core-ct.61.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
<br>
> On 2021-07-07, at 11:30 PM, commits@source.squeak.org wrote:<br>
> <br>
> Adds String >> #escapeRegex to escape special characters in a string before composing it into another regex.<br>
<br>
Take care with escaping special characters.<br>
<a href="https://xkcd.com/1638/">https://xkcd.com/1638/</a><br>
<br>
tim<br>
--<br>
tim Rowledge; tim@rowledge.org; <a href="http://www.rowledge.org/tim">http://www.rowledge.org/tim</a><br>
Oxymorons: Business ethics<br>
<br>
<br>
<br>
</div>
</span></font>
</body>
</html>