[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RegExp.Replace
[Thread Prev] | [Thread Next]
- Subject: Re: RegExp.Replace
- From: Gianluigi <gradobag@xxxxxxxxxxx>
- Date: Tue, 2 Dec 2025 15:51:42 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
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
| Re: RegExp.Replace | CD <dessere.claude@xxxxxx> |
| Re: RegExp.Replace | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |