title: Weird Android intent-filter pathPattern issue while deep linking
body: <p>I want to create deeplinks for these two http urls</p>
  
  <blockquote>
    <p><a href="https://sample-app-123.appspot.com/backoffice/#/user_reset_password?email=abc@gmail.com" rel="nofollow">https://sample-app-123.appspot.com/backoffice/#/user_reset_password?email=abc@gmail.com</a>
    <a href="https://sample-app-123.appspot.com/backoffice/#/user_create_password?email=abc@gmail.com" rel="nofollow">https://sample-app-123.appspot.com/backoffice/#/user_create_password?email=abc@gmail.com</a></p>
  </blockquote>
  
  <p>I have gone through various StackOverflow answers, none of them worked. I got to know <strong>PatternMatcher.PATTERN_SIMPLE_GLOB</strong> is used by Android for matching pattern instead of regex expressions.</p>
  
  <p>My manifest looks like</p>
  
  <pre><code>&lt;activity android:name=".CreateActivity"
      android:label="Create Password"
      &gt;
      &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.VIEW"/&gt;
      &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
      &lt;category android:name="android.intent.category.BROWSABLE"&gt;&lt;/category&gt;
      &lt;data
          android:host="sample-app-123.appspot.com"
          android:scheme="https"
          android:pathPattern=".*create_password.*"
          /&gt;
      &lt;/intent-filter&gt;
  
  &lt;/activity&gt;
  &lt;activity android:name=".ResetActivity"
      android:label="Reset Password"
      &gt;
      &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.VIEW" /&gt;
      &lt;category android:name="android.intent.category.VIEW"/&gt;
      &lt;category android:name="android.intent.category.DEFAULT"&gt;&lt;/category&gt;
      &lt;category android:name="android.intent.category.BROWSABLE"&gt;&lt;/category&gt;
      &lt;data
          android:host="sample-app-123.appspot.com"
          android:scheme="https"
          android:pathPattern=".*reset_password.*"
          /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>I have created several tests for checking <strong>PatternMatcher.PATTERN_SIMPLE_GLOB</strong>, All tests are PASSED, i am clueless why its not working</p>
  
  <pre><code>public void testPatternMatcher() throws Exception {
      PatternMatcher mPatternMatcher;
  
      mPatternMatcher = new PatternMatcher("https://sample-app-123.appspot.com/backoffice\\/#\\/user_create_password.*", PatternMatcher.PATTERN_SIMPLE_GLOB);
      assertTrue(mPatternMatcher.match("https://sample-app-123.appspot.com/backoffice/#/user_create_password?email=abc@gmail.com"));
      assertFalse(mPatternMatcher.match("https://sample-app-123.appspot.com/backoffice/#/user_reset_password?email=abc@gmail.com"));
  
      mPatternMatcher = new PatternMatcher(".*user_create_password.*", PatternMatcher.PATTERN_SIMPLE_GLOB);
      assertTrue(mPatternMatcher.match("https://sample-app-123.appspot.com/backoffice/#/user_create_password?email=abc@gmail.com"));
      assertFalse(mPatternMatcher.match("https://sample-app-123.appspot.com/backoffice/#/user_reset_password?email=abc@gmail.com"));
  
      mPatternMatcher = new PatternMatcher(".*user_reset_password.*", PatternMatcher.PATTERN_SIMPLE_GLOB);
      assertFalse(mPatternMatcher.match("/backoffice/#/user_create_password?email=abc@gmail.com"));
      assertTrue(mPatternMatcher.match("/backoffice/#/user_reset_password?email=abc@gmail.com"));
  }
  </code></pre>