G Gianluca Esposito Member Licensed User Longtime User Apr 6, 2017 #1 Hi i have stringa="test\ncon virgola\ntest split". How can I apply the split? Dim s() As String = Regex.Split("\n", "test\ncon virgola\ntest split") does not work Thanks
Hi i have stringa="test\ncon virgola\ntest split". How can I apply the split? Dim s() As String = Regex.Split("\n", "test\ncon virgola\ntest split") does not work Thanks
DonManfred Expert Licensed User Longtime User Apr 6, 2017 #2 See https://en.wikipedia.org/wiki/Regular_expression \n is a special command. I guess you need to escape it. B4X: Dim s() As String = Regex.Split("\\n", "test\ncon virgola\ntest split") Log(s.Length) Upvote 0
See https://en.wikipedia.org/wiki/Regular_expression \n is a special command. I guess you need to escape it. B4X: Dim s() As String = Regex.Split("\\n", "test\ncon virgola\ntest split") Log(s.Length)