[squeak-dev] given String 'Foo <nowiki>Bar</nowiki> Baz' yield String 'Foo Baz'

tim Rowledge tim at rowledge.org
Fri Dec 25 19:15:01 UTC 2020


Depends on your needs - 

> On 2020-12-25, at 9:28 AM, gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org> wrote:
> 
> 
> 'Foo <nowiki>Bar</nowiki> Baz' removeAllBetween:'<nowiki>' and: '</nowiki>'.
> thx in advance.

For a one-off case, maybe some of the #findTokenXXX methods? Maybe #parseTokens: would help - it's part of the HTML handling stuff.

For bigger duty, probably time to look into the regexp methods; there's a bunch of likely suspects in the messagenamebrowser. 


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: BPB: Branch on Program Bug




More information about the Squeak-dev mailing list