Android Question RegEx question

wl

Well-Known Member
Licensed User
Longtime User
I have following demo code:

B4X:
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 ?

B4X:
public static final int MULTILINE = 8;
public static final int CASE_INSENSITIVE = 2;
 
Last edited:
Top