Hello everyone, I've been struggling with a regex for hours and no finding a solution, I made a regex in javascript, but in b4j it doesn't work at all ...
javascript regex :
b4j code :
does anyone know how i make it work in b4j ?
javascript regex :
/<div\b[^>]*class="playerAvatarAutoSizeInner"[^>]*>([\s\S]*?)<\/div>/gm
b4j code :
B4X:
Dim text, pattern As String
text = httpResponse
pattern = $"/<div\b[^>]*class="playerAvatarAutoSizeInner"[^>]*>([\s\S]*?)<\/div>/gm"$
Dim Matcher1 As Matcher
Matcher1 = Regex.Matcher(pattern, text)
Do While Matcher1.Find
Log("Found: " & Matcher1.Match)
Loop
does anyone know how i make it work in b4j ?