German Split like VB.NET

Sinan Tuzcu

Well-Known Member
Licensed User
Longtime User
Hallo,

weis einer wie ich so etwas in B4A realisieren kann?
B4X:
Dim msg_trennen() As String = Split(msg, "|")
 

DonManfred

Expert
Licensed User
Longtime User
| ist ein Sonderzeichen bei Regex, muss daher Escaped werden:

B4X:
    Dim msg As String = "Test|Test2|Test3"
    Dim msg_trennen() As String = Regex.Split("\|",msg)
    Log(msg_trennen(0))
    Log(msg_trennen(1))
    Log(msg_trennen(2))
 
Top