DonManfred Expert Licensed User Longtime User Nov 25, 2016 #2 kuosda said: 「.」 Click to expand... Do you want to split on these three chars??? Or do you want to split at a dot? To use dot you need to escape it. B4X: Dim data As String data = "123.432.13.4.12534" Dim numbers() As String numbers = Regex.Split("\.", data) Dim l As List l.Initialize2(numbers) Log(l) Last edited: Nov 25, 2016 Upvote 0
kuosda said: 「.」 Click to expand... Do you want to split on these three chars??? Or do you want to split at a dot? To use dot you need to escape it. B4X: Dim data As String data = "123.432.13.4.12534" Dim numbers() As String numbers = Regex.Split("\.", data) Dim l As List l.Initialize2(numbers) Log(l)
Erel B4X founder Staff member Licensed User Longtime User Nov 25, 2016 #3 Small mistake. It should be: B4X: Regex.Split("\.", data) Upvote 0
DonManfred Expert Licensed User Longtime User Nov 25, 2016 #4 Erel said: Small mistake. It should be Click to expand... Oups, dammit Upvote 0
RandomCoder Well-Known Member Licensed User Longtime User Nov 27, 2016 #6 No it's not a bug. Special characters must be escaped using a backslash before they can be used in an expression. The "." dot has a special meaning when not escaped, it matches any character except line breaks. Upvote 0
No it's not a bug. Special characters must be escaped using a backslash before they can be used in an expression. The "." dot has a special meaning when not escaped, it matches any character except line breaks.
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2016 #7 kuosda said: This is a bug! Click to expand... This is regular expressions! Upvote 0