hi,
i test my regex on web https://regex101.com (javascript)
realize a function ,get all strings between "{" and "}" from a file.
it works OK, and matched all. see attached pic
but when i use it inB4A, it does not work.
what's the problem?
Thanks
i test my regex on web https://regex101.com (javascript)
realize a function ,get all strings between "{" and "}" from a file.
it works OK, and matched all. see attached pic
but when i use it inB4A, it does not work.
B4X:
s1 = File.ReadString(File.DirAssets,"songgrouplist.txt")
matcher1=Regex.Matcher("{[\s]*.*[\s]*.*[\s]*.*[\s]*.*[\s]*.*[\s]*}",s1) 'here program crash
Do While matcher1.Find
mystrings = matcher1.Match
Loop
Thanks
Attachments
Last edited: