1

I am facing problem in matching urls having a particular word

android:scheme="http"
android:domain="example.com"
android:pathpattern="/.*-location-.*"

It should match urls for eg

"http://example.com/bangalore-location-158"

But fails for

"http://example.com/all-bangalore-location-158"

As after first '-' looks for 'l' and in failed ex, after first '-', it has 'b'

Pattern matcher fails safe if there is first mismatch. But actually failed ex has "-location-" actually

So looking for pattern matcher, which looks for -location- completely.

Billal Begueradj
  • 20,717
  • 43
  • 112
  • 130
Santhosh
  • 11
  • 1
  • have a look here if it may help you -- http://stackoverflow.com/questions/4762251/android-matching-a-url-pattern – Tasos Aug 31 '16 at 05:00

0 Answers0