P pappicio Active Member Licensed User Longtime User Jun 4, 2013 #1 Hi all, I'm tryng to split a string that contains "0xA" rnlines, but if I save it on a fiel and then use file.readlist, all works, but if I try to directly use regex.split(chr(10), string), nothing appen, no split on it.....
Hi all, I'm tryng to split a string that contains "0xA" rnlines, but if I save it on a fiel and then use file.readlist, all works, but if I try to directly use regex.split(chr(10), string), nothing appen, no split on it.....
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2013 #2 Try: Code: Copy Regex.Split("\n", string) Upvote 0
P pappicio Active Member Licensed User Longtime User Jun 4, 2013 #3 Erel said: Try: Code: Copy Regex.Split("\n", string) Click to expand... thanks for fast reply, but doesn't work..... I tryed also to list charat... but jump the chr(0xA), seems that only saveing on a file it is formatted right.... Upvote 0
Erel said: Try: Code: Copy Regex.Split("\n", string) Click to expand... thanks for fast reply, but doesn't work..... I tryed also to list charat... but jump the chr(0xA), seems that only saveing on a file it is formatted right....
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2013 #4 Can you upload your text file? Upvote 0
P pappicio Active Member Licensed User Longtime User Jun 4, 2013 #5 Erel said: Can you upload your text file? Click to expand... this is the command: dim s as string= j.execRootCmd("/system/bin/netcfg") using b4arootcmd library s, conatins all interfaces, and I need to split them..... Upvote 0
Erel said: Can you upload your text file? Click to expand... this is the command: dim s as string= j.execRootCmd("/system/bin/netcfg") using b4arootcmd library s, conatins all interfaces, and I need to split them.....
P pappicio Active Member Licensed User Longtime User Jun 4, 2013 #6 pappicio said: this is the command: dim s as string= j.execRootCmd("/system/bin/netcfg") using b4arootcmd library s, conatins all interfaces, and I need to split them..... Click to expand... I think is a library bug..... edit: yes, is a library bug.... if I save on txt file then it saves line x line, if I retrieve all command on a string var, then no lines, but only a string, I obtain, without "\n" end-line..... thanks for your answer Erel! Last edited: Jun 4, 2013 Upvote 0
pappicio said: this is the command: dim s as string= j.execRootCmd("/system/bin/netcfg") using b4arootcmd library s, conatins all interfaces, and I need to split them..... Click to expand... I think is a library bug..... edit: yes, is a library bug.... if I save on txt file then it saves line x line, if I retrieve all command on a string var, then no lines, but only a string, I obtain, without "\n" end-line..... thanks for your answer Erel!