<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi all,</p>
<p><br>
</p>
<p>Tom has asked me whether the following string could be treated as a valid regular expression in Squeak:</p>
<p><br>
</p>
<p>    (:)+</p>
<p><br>
</p>
<p>Currently, this raises a regex syntax error because we use colons to denote message predicates such as in '<span>:isSafeForHTTP:+'. However, if the tokens after a colon do not constitute a valid selector symbol, we *could* also consume the token as a normal
 character.</span></p>
<p><span><br>
</span></p>
<p><span>Initially, I disagreed with this change because it would increase the grammatical complexity of Squeak regexes. Also, we do not consider '(+' or 'a{+' valid regexes. (However, many - but not all - other regex flavors accept 'a{+' indeed - maybe we
 should subject this behavior to change as well?) On the other hand, Tom would like to improve the compatibility with other regex flavors which usually do not assign a special meaning to the colon.</span></p>
<p><span><br>
</span></p>
<p><span>What do you think? I am looking forward to hearing your arguments!</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</body>
</html>