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

RegExp.Replace


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?

Regards


Follow-Ups:
Re: RegExp.ReplaceGianluigi <gradobag@xxxxxxxxxxx>
Re: RegExp.ReplaceIan Roper <westozscribe@xxxxxxxxx>
Re: RegExp.ReplaceBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: RegExp.Replace"Mayost Sharon" <sharon@xxxxxxxxx>