bb wrote:
>I think you might find that the last character of indesejaveis.txt is a \n
(as is the case for many, many > files) so in actual fact your original
split did exactly what it was supposed to do.
>
> And your work around is correct. Although it is not actually a work
around it is a very
>
On 05/07/17 11:58, Fernando Cabral wrote:
I have found and worked around the problem. When you do the following:
*Dim Expressions as string[] =
Split(File.Load("/home/fernando/.config/libreoffice/4/user/basic/indesejaveis.txt"),
"\n") *
The last item pushed into *Expressions* is an empty string
File.Load is working fine. It is just loading a file that has a
trailing "\n". Split then adds an empty string as the last entry in the
array. This is Split's documented behaviour. Adding the True option
suppresses empty entries. Note that Split will also add an empty entry
for any blank l
I have found and worked around the problem. When you do the following:
*Dim Expressions as string[] =
Split(File.Load("/home/fernando/.config/libreoffice/4/user/basic/indesejaveis.txt"),
"\n") *
The last item pushed into *Expressions* is an empty string ("") even though
it DOES NOT exist
in the f
Concerning RegExp I have another mysterious thing to understand
If I do something like:
*Searchfor.Push("Word")Searchfor.Push("Power")Searchfor.Push("The same")For
Each searchedfor In searchfor re.Compile(searchedfor, re.utf8)Next*
The expression gest compiled. No error.
Neverthelesse, i