I am answering my own question because I found the solution for it.
This is the code that didn't work:
> myString := 'one\n\ntwo\n\n'.
> re := '\n\n' asRegex.
> myString splitOn: re.
The reason it didn't work was because you apparently have to escape the
newlines pattern in the regex line. So t
--- Begin Message ---
Hi,
After installing drgeo and save some modification on tonel repo. I got
this persisting error on calypso whatever the button I click on the
browser ui.
Hilaire
--
Dr. Geo
http://drgeo.eu
THERE_BE_DRAGONS_HERE
#selected was sent to nil
14 January 2019 9:22:03.639371 pm
I am trying to split a string in pharo using a regular expression.
A simple example that works:
myString := 'one\n\ntwo\n\n'.
myString splitOn: '\n\n'.
A simple example that does not work:
myString := 'one\n\ntwo\n\n'.
re := '\n\n' asRegex.
myString splitOn: re.
The result of the above is I get
Pharo Smalltalk Users mailing list wrote
> Or... what do you mean by "talents"?
IIUC a talent is behavior like a trait, but that can be dynamically added
and removed from anObject instead of being permanently bound to the class
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smallt