<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:large">Hi Tim,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 25, 2020 at 9:29 AM gettimothy via Squeak-dev <<a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u><div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:10pt"><div>Hi folks,<br></div><div><br></div><div>I did not see anything obvious to do the above, and I am writing some really ugly code to get the task done.<br></div><br>Is anybody aware of a simple message send like...<br><br><blockquote style="border:1px solid rgb(204,204,204);padding:7px;background-color:rgb(245,245,245)"><div>'Foo <nowiki>Bar</nowiki> Baz' removeAllBetween:'<nowiki>' and: '</nowiki>'.<br></div></blockquote><div>thx in advance.</div></div></div></blockquote><div><br></div><div class="gmail_default">You can rely on your own parsing, but if you're at all likely to expand into a broader HTML space then explore the HTML Framework.  For example, this doesn't do what you want but it gets you close and is generally powerful enough for any and all HTML parsing tasks.</div><div class="gmail_default"><br></div><div class="gmail_default">(HTMLParser parse: 'Foo <nowiki>Bar</nowiki> Baz') contents last textualContents => 'Foo Bar Baz'</div></div><br clear="all"><div><br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="border-collapse:separate"><div>_,,,^..^,,,_<br></div><div><span class="gmail_default">Happy Holidays</span>, Eliot</div></span></div></div></div></div></div>