Alexander Stolte Expert Licensed User Longtime User Jan 31, 2021 #1 How can i replace all double dots and only allow one dot per string? Example: Allowed: 1 1.2 10.20 Not Allowed: .1 1.0.0
How can i replace all double dots and only allow one dot per string? Example: Allowed: 1 1.2 10.20 Not Allowed: .1 1.0.0
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2021 #2 B4X: For Each s As String In Array("1", "1.2", "10.20", ".1", "1.0.0") Log(s & ": " & Regex.IsMatch("\d+\.\d+|\d+", s)) Next Upvote 0
B4X: For Each s As String In Array("1", "1.2", "10.20", ".1", "1.0.0") Log(s & ": " & Regex.IsMatch("\d+\.\d+|\d+", s)) Next
Alexander Stolte Expert Licensed User Longtime User Jan 31, 2021 #3 and if i use this with replace? Upvote 0