Android Question Problem in Regex

Pooya1

Active Member
Licensed User
Hi
I use below pattern for extract latitude and longitude from googlemap url
@([0-9]+\.[0-9]+),(\-?[0-9]+\.[0-9]+)
This pattern is working in Online Regex tester or event JAVA
But in B4x not working
Is there any different between languages about regex?
My code :
B4X:
If Regex.IsMatch("@([0-9]+\.[0-9]+),(\-?[0-9]+\.[0-9]+)",Data.Get("map")) Then
            Dim matcher As Matcher
            matcher = Regex.Matcher("@(\-?[0-9]+\.[0-9]+),(\-?[0-9]+\.[0-9]+)",Data.Get("map"))
            Log(matcher.GroupCount)
        End If

My sample googlemap url :
https://www.google.com/maps/place/J...d=0ahUKEwi53sCfhO7PAhUBWRQKHamtAwwQ_BIIiQEwDg
 
Top