This is mostly to thank Tobi and Jussi for their help in solving some
issues that were making me unhappy.
With three lines of code I have solved what used to take me twenty or so.
What is better yet: execution time
fell down from 2min 30 sec to 1,5 seconds. And the code is much more
transparent, T
Tobi, I have been learning a lot with your comments and suggestions.
Usually, I don't stress performance too much. In this case, I have tried
to do things a little faster because I am using Gambas as a kind of add-on
to LibreOffice. I use it to check readability, wordiness, sentences that
are too
On Sat, 17 Jun 2017, Fernando Cabral wrote:
> Tobi
>
> One more thing about the way I wish it could work (I remember having done
> this in C perhaps 30 years ago). The pseudo-code bellow is pretty
> schematic, but I think it will clarify the issue.
>
> Let p and l be arrays of integers and s be t
Oh, sorry... this way of course:
Dim sStr As String = "abc. def!!! ghi? jkl: (mno)"
Dim sWords As String[]
sWords = Split(sStr, " .!?:()", "", True) ''Expand as you will.
For ii = 0 To sWords.Max
Print sWords[ii]
Next
Jussi
On Sun, Jun 18, 2017 at 6:29 AM, Jussi Lahtinen
I think I would do something like:
Dim ii As Integer
Dim sStr As String = "abc defg hijkl"
Dim sWords As String[]
sWords = Split(sStr, " ")
For ii = 0 To 2
Print sWords[ii]
Next
Jussi
On Sun, Jun 18, 2017 at 2:57 AM, Fernando Cabral <
fernandojosecab...@gmail.com> wrote:
> T
Tobi
One more thing about the way I wish it could work (I remember having done
this in C perhaps 30 years ago). The pseudo-code bellow is pretty
schematic, but I think it will clarify the issue.
Let p and l be arrays of integers and s be the string "abc defg hijkl"
So, after traversing the strin
Thank you, Tobi, for taking the time to comment on my issues. I will ponder
the following.
2017-06-17 18:06 GMT-03:00 Tobias Boege :
> On Sat, 17 Jun 2017, Fernando Cabral wrote:
> >> Still beating my head against the wall due to my lack of knowledge about
> >> the PCRE methods and properties...
On Sat, 17 Jun 2017, Fernando Cabral wrote:
> Still beating my head against the wall due to my lack of knowledge about
> the PCRE methods and properties... Because of this, I have progressed not
> only very slowly but also -- I fell -- in a very inelegant way. So perhaps
> you guys who are more acq
Still beating my head against the wall due to my lack of knowledge about
the PCRE methods and properties... Because of this, I have progressed not
only very slowly but also -- I fell -- in a very inelegant way. So perhaps
you guys who are more acquainted with PCRE might be able to hint me on a
bett