Re: [Gambas-user] Regex - expert opinion requested

2017-06-01 Thread Fernando Cabral
Tobi, > This sounds interesting, because for one thing I can't imagine a pipe chain > of "sed" invocations to take this long on just 500 KiB input (but I could > be wrong). "sed" does it in a lightning fast way. For instance, sed 's/[^.:;,?!]//g' About your regular expressions: I think the key po

Re: [Gambas-user] Regex - expert opinion requested

2017-05-31 Thread Tobias Boege
On Wed, 31 May 2017, Fernando Cabral wrote: > This is only for those who like to work with regular expressions. > It is a performance issue. I am using 26 different regular expressions of > this kind: > > txt = RegExp.Replace(TextoBruto, NaoNumerais, "&1\n", RegExp.UTF8) > txt = RegExp.Replace(Txt

[Gambas-user] Regex - expert opinion requested

2017-05-31 Thread Fernando Cabral
This is only for those who like to work with regular expressions. It is a performance issue. I am using 26 different regular expressions of this kind: txt = RegExp.Replace(TextoBruto, NaoNumerais, "&1\n", RegExp.UTF8) txt = RegExp.Replace(Txt, "\n\n+?", "\n", RegExp.UTF8) txt = RegExp.Replace(Txt,