This was extremely useful to replace ALL instances of a certain Regex pattern in B4A.
How can it be translated for B4i ?
B4X:
Sub RegexReplace(Pattern As String, Text As String, Replacement As String) As String
Dim m As Matcher
m = Regex.Matcher2(Pattern, Regex.MULTILINE, Text)
Dim jo As JavaObject = m
Return jo.RunMethod("replaceAll", Array(Replacement))
End Sub
How can it be translated for B4i ?