[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RegExp.Replace


Il 02/12/25 08:13, CD ha scritto:
Hello,

I have a string like this:

Dim s As String = "A     B    C D   E"

s = RegExp.Replace(s, "\\s+", " ")

Print s

I would like to get "A B C D E"

What should I write in the Pattern string?
I've tried many things, without success.
So what should I change to get the desired result?

What about using the string as an array instead?
See here:
https://gambaswiki.org/wiki/lang/mid

Regards
Gianluigi


References:
RegExp.ReplaceCD <dessere.claude@xxxxxx>