I have to build smth with URL, but only with valid google play links. I will get a link from user and want to check it before connect to it. If i have a Google Play link like this: https://play.google.com/store/apps/details?id=com.... I want to match it with regex and method matches (or should I just use method contains?) If link contains play.google.com - it's true and then do some actions. If false - throw new exception.
I tried with
\\. + play.google. + \\.
but it doesn't work at all.