B4X:
pattern = "var ytInitialPlayerResponse = (.*?};)" 'one or more digits
Dim Matcher1 As Matcher
Matcher1 = Regex.Matcher(pattern, text)
Do While Matcher1.Find
Log("Found: " & Matcher1.Match)
Loop
How do I convert this regex to work in b4x? as it is the error occurs > java.util.regex.PatternSyntaxException: Syntax error in regexp pattern near index 37