<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Well, I know that learning is a very subjective topic, but personally, I was very happy with learning all the regex stuff I needed by trial, error, and StackOverflow ;-)</p>
<p>I'm wondering how you can actually fill a book about this topic? Is that book about the actual implementation of a regex machine?</p>
<p><br>
</p>
<p>Take a cheat sheet like this (<a href="https://www.rexegg.com/regex-quickstart.html" class="OWAAutoLink" id="LPlnk194871" previewremoved="true">https://www.rexegg.com/regex-quickstart.html</a>, it's just *any* cheat sheet) and you know 95 % of the syntax.</p>
<br>
<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>
<div class="_rp_T4" id="Item.MessagePartBody">Best,
<div class="_rp_U4 ms-font-weight-regular ms-font-color-neutralDark rpHighlightAllClass rpHighlightBodyClass" id="Item.MessageUniqueBody" style="font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont">
<div dir="ltr">
<div id="divtagdefaultwrapper"><font face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols">
<div id="Signature">
<div style="margin:0px"><font style="font-family:Calibri,Arial,Helvetica,sans-serif,serif,EmojiFont"></font></div>
</div>
</font></div>
</div>
</div>
</div>
<div class="_rp_T4" id="Item.MessagePartBody">Christoph</div>
</div>
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Chris Cunnington <brasspen@gmail.com><br>
<b>Gesendet:</b> Montag, 30. März 2020 17:10:09<br>
<b>An:</b> John Pfersich; The general-purpose Squeak developers list<br>
<b>Betreff:</b> Re: [squeak-dev] Question about VB-Regex</font>
<div> </div>
</div>
<div>That’s an excellent suggestion. I forgot about that book. I had it over ten years (and several moves) ago. Thinking about it now, I seem to recall that Friedl was not just an expert, but quite conscientious about making the topic accessible. Thank you
 for the reminder. (And I also prefer books because I like to highlight things.)
<div class=""><br class="">
</div>
<div class="">Chris <br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Mar 30, 2020, at 12:53 AM, John Pfersich via Squeak-dev <<a href="mailto:squeak-dev@lists.squeakfoundation.org" class="">squeak-dev@lists.squeakfoundation.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="auto" class="">I know it’s a little old-fashioned to recommend a book, but you might learn a thing or two about regexes from Mastering Regular Expressions by Friedl. It’s an OReilly book. Mine’s copyright 2002, second edition, about 430 pages deep.
 Still on my reference shelf after 20 years.<br class="">
<br class="">
<div dir="ltr" class=""><span style="font-size: 13pt;" class="">/————————————————————/</span>
<div class=""><span style="font-size: 13pt;" class="">For encrypted mail use <a href="mailto:jgpfersich@protonmail.com" class="">
jgpfersich@protonmail.com</a></span>
<div class="">Get a free account at <a href="http://ProtonMail.com" class="">ProtonMail.com</a></div>
<div class="">Web: <a href="https://objectnets.net" class="">https://objectnets.net</a> and
<a href="https://objectnets.org" class="">https://objectnets.org</a></div>
</div>
<div class=""><a href="https://datascilv.com" class="">https://datascilv.com</a> <a href="https://datascilv.org" class="">
https://datascilv.org</a></div>
<div class=""><br class="">
</div>
</div>
<div dir="ltr" class=""><br class="">
<blockquote type="cite" class="">On Mar 29, 2020, at 11:42, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" class="">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:<br class="">
<br class="">
</blockquote>
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">
<div id="divtagdefaultwrapper" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" dir="ltr" class="">
<p class="">Hi Regex friend :-)</p>
<p class=""><br class="">
</p>
<p class="">I assume you are referring to Regex-Core (thanks for the clarification, Levente!).</p>
<p class=""><br class="">
</p>
<p class="">Yes, regexes are indeed very nerdy fun, though I recommend to use them rarely in production stuff, they just don't provide a really good readability. I don't know how experienced you are with regex in general, but I can recommend you
<a href="http://regex101.com" class="">regex101.com</a> if you did not know it yet. I'm not sure what you are looking for in detail, but if you're interested in further examples, here are a few ones:</p>
<p class=""><br class="">
</p>
<p class=""><a href="http://forum.world.st/The-Inbox-Tests-ct-429-mcz-td5113665.html#:~:text=allRangesOfRegexMatches" class="OWAAutoLink" id="LPlnk886421" previewremoved="true">http://forum.world.st/The-Inbox-Tests-ct-429-mcz-td5113665.html#:~:text=allRangesOfRegexMatches</a> (see
 #<span class="">testUndefinedVariable and</span> #<span class="">testUnusedVariable).</span></p>
<p class=""><br class="">
</p>
<p class=""><span class=""></span>In <span class="">Regex-Core-ct.55 f., I extended the implementation of lookaround expressions in Smalltalk.</span></p>
<p class=""><span style="font-size: 12pt;" class="">(This is a small piece of art:</span><br class="">
</p>
<div class=""><span class=""></span><br class="webkit-block-placeholder">
</div>
<div class="">'(?<=(?<!n''t\s+)l[o]ve\s+)\w+' asRegex matchesIn: 'I love Squeak. I don''t love C++. I love Smalltalk.'.</div>
<div class="">:-))</div>
<div class=""><br class="">
</div>
And in as near as possible future, I will commit support for \x and \p as described
<a href="https://www.regular-expressions.info/unicode.html#:~:text=Unicode%20Categories" class="OWAAutoLink">
here</a>. Stay tuned!
<div class=""><br class="webkit-block-placeholder">
</div>
<p class=""><br class="">
</p>
<p class="">Best,</p>
<p class="">Christoph</p>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" class="">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0" class="">
<div class=""><font size="2" color="#808080" class=""></font></div>
</div>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1" class="">
<div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size:11pt" class=""><b class="">Von:</b> Squeak-dev <<a href="mailto:squeak-dev-bounces@lists.squeakfoundation.org" class="">squeak-dev-bounces@lists.squeakfoundation.org</a>>
 im Auftrag von Chris Cunnington <<a href="mailto:brasspen@gmail.com" class="">brasspen@gmail.com</a>><br class="">
<b class="">Gesendet:</b> Sonntag, 29. März 2020 18:08:44<br class="">
<b class="">An:</b> The general-purpose Squeak developers list<br class="">
<b class="">Betreff:</b> Re: [squeak-dev] Question about VB-Regex</font>
<div class=""> </div>
</div>
<div class="">You posted an #asRegex example in talking to Eliot about inlining recently. I’ve printed it out and plan to play with it next week. 
<div class="">If you have any more thoughts or examples using the VB-Regex package, I hope you’ll post some here. I’m very interested in this stuff. </div>
<div class=""><br class="">
</div>
<div class="">Chris <br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Mar 29, 2020, at 9:44 AM, Thiede, Christoph <<a href="mailto:Christoph.Thiede@student.hpi.uni-potsdam.de" class="">Christoph.Thiede@student.hpi.uni-potsdam.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Hi all,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">as you may have noticed, I have proposed some new features for Regex-Core in recent past, and I found a lot of fun in working with this clean architecture for which I still see a lot of potential for
 expansion (for example, I'm currently having basic support for<span class="Apple-converted-space"> </span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;" class="">U</span><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;" class="">nicode</span> matches
 in my pipeline, this is currently blocked by<span class="Apple-converted-space"> </span><a href="http://forum.world.st/Unicode-td5113495.html" class="OWAAutoLink">this thread</a>. For the future, I also would like to consider named groups & depending features).
 But before I will invest unnecessary time into the Regex-Core package, I have one question:</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Recently I stumbled upon VB-Regex, which looks very similar to Regex-Core. Has this been a predecessor of Regex-Core, is it a successor or are they two independent forks? I could not find any information
 about this topic on the web.</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Is my assumption correct that Regex-Core is the regex "state of the art" within Squeak?</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Best,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Christoph</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
<span class=""></span><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>