Tobi, I was not aware and have been careless with the subject issue. Sorry.
As to the Regexp.Replace quirk, I found it out the hardest way: trying,
trying and trying.
Now I hope I have that knack of it. At least with the more basic
expressions.
Thank you.
- fernando
2017-04-29 8:48 GMT-03:00 To
On Fri, 28 Apr 2017, Fernando Cabral wrote:
> Hi, gambas is new to me, but regex is not so new. But I am baffled with the
> following result:
>
> str = "A#BB##CCC###"
> print RegExp.Replace(str, "[#]+", ";")
> A;BB;;CCC;;;
> str = "A#BB##CCC###"
> print RegExp.Replace(str, "[#][#]*", ";")
>