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

Re: RegExp.Replace


Il 02/12/25 14:53, Benoît Minisini ha scritto:
Le 02/12/2025 à 14:36, CD a écrit :
Sorry, Benoît,

I probably misunderstood what you were suggesting,


You did.

RegExp.Replace() is a static function. The compilation options are passed as third argument.

Did you look at the documentation?


Hi,

I had assumed that CD wanted a regular expression that did the same thing.
But as usual, I misunderstood. :-(

[code]
Public Sub Main()

  Dim s As String = "A     B         C      DE      FHI L M N OQRS"
  Dim s1, sText As String

  For i As Integer = 1 To s.Len
    s1 = Mid(s, i, 1)
    If s1 <> " " Then sText &= s1 & " "
  Next
  Print RTrim(sText)

End
[/code]

Regards
Gianluigi


References:
Re: RegExp.ReplaceCD <dessere.claude@xxxxxx>
Re: RegExp.ReplaceBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>