W wl Well-Known Member Licensed User Longtime User Aug 31, 2013 #1 I have following demo code: Code: Dim foo as string = "some tekst;;" Dim foo2() as string = Regex.Split(";", foo) I would expect foo2 to contain 2 items, so I can do a join to get the original string back. Unfortunately foo2 only contains a single item. I found a Regex.Split2 method but can't seem to find a description of the extra parameter "Options" (see http://www.b4x.com/android/help/regularexpressions.html#regex_split2) Thanks EDIT: by decompiling de RegEx.class in the core.jar I found following constants ? Code: public static final int MULTILINE = 8; public static final int CASE_INSENSITIVE = 2; Last edited: Aug 31, 2013
I have following demo code: Code: Dim foo as string = "some tekst;;" Dim foo2() as string = Regex.Split(";", foo) I would expect foo2 to contain 2 items, so I can do a join to get the original string back. Unfortunately foo2 only contains a single item. I found a Regex.Split2 method but can't seem to find a description of the extra parameter "Options" (see http://www.b4x.com/android/help/regularexpressions.html#regex_split2) Thanks EDIT: by decompiling de RegEx.class in the core.jar I found following constants ? Code: public static final int MULTILINE = 8; public static final int CASE_INSENSITIVE = 2;
Erel B4X founder Staff member Licensed User Longtime User Aug 31, 2013 #2 You can see these constants here: http://www.b4x.com/android/help/regularexpressions.html#regex Upvote 0