Android Question Replace dollar sign

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
Hi
Why this code not work!
B4X:
dim s() as string=regex.split("$","b$4$x")
for i=0 to s.length-1
'''not working
next
 

DonManfred

Expert
Licensed User
Longtime User
$ is a special char which needs to be escaped.

B4X:
    Dim s() As String=Regex.split("\$","b$4$x")
    For i=0 To s.length-1
        ' works
        Log(s(i))
    Next
 
Upvote 0
Top