RegEx lib with Split method

Discorez

Member
Licensed User
Longtime User
The library has no this method, but it is sometimes necessary...
The expanded library is presented below.
Sample:
B4X:
Sub Globals
   Dim strs(0) As String 
End Sub

Sub App_Start
        S = "1" & CRLF & "2" & CRLF & "3" & CRLF & "4" & CRLF & "5"
        RE.New1("\r\n")
   strs() = RE.Split(S)
   For i = 0 To ArrayLen(strs()) -1
             Msgbox(strs(i))
   Next
End Sub
 

Attachments

  • RegEx.zip
    2.9 KB · Views: 38
Top