P parijs Active Member Licensed User Longtime User Jan 11, 2012 #1 Hi I split text form a db with this code Dim data As String data = "Pere Lachaise metro 2 en 3,Philippe Auguste metro 2" Dim numbers() As String numbers = Regex.Split("[,\s]+", data) Dim l As List l.Initialize2(numbers) But it don't spit on the "," so i get Pere Lachaise metro How can I solf this problem ?
Hi I split text form a db with this code Dim data As String data = "Pere Lachaise metro 2 en 3,Philippe Auguste metro 2" Dim numbers() As String numbers = Regex.Split("[,\s]+", data) Dim l As List l.Initialize2(numbers) But it don't spit on the "," so i get Pere Lachaise metro How can I solf this problem ?
klaus Expert Licensed User Longtime User Jan 11, 2012 #2 Use simply: B4X: numbers = Regex.Split(",", data) Best regards. Upvote 0
NJDude Expert Licensed User Longtime User Jan 11, 2012 #3 Try this: B4X: numbers = Regex.Split(",", data) EDIT: Klaus beat me by a second. Upvote 0
P parijs Active Member Licensed User Longtime User Jan 11, 2012 #4 Very good Gentleman, and really fast. You both go through for the fridge Life is good with B4A and men like you Upvote 0
Very good Gentleman, and really fast. You both go through for the fridge Life is good with B4A and men like you