Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is the regex pattern that might be the solution for your problem. Toilet water pH levels should not affect a regex, that's a common rule.</p> <pre><code>/\/(\d{4,}|\+\w+?)\//g.exec(window.location.pathname); </code></pre> <p>You can see the results <strong><a href="http://regexr.com?323su" rel="nofollow">here</a></strong>.</p> <p>Note that you can replace number <code>4</code> in regex with anything you'd like. This number is the minimum number of digits required for capture. I'm not sure what format Google's IDs take, so you might want to change that number to <code>10</code>, for example, if you're sure IDs never have less than 10 digits.</p> <p>The explanation of the pattern is here:</p> <pre><code>// /(\d{4,}|\+\w+?)/ // // Match the character “/” literally «/» // Match the regular expression below and capture its match into backreference number 1 «(\d{4,}|\+\w+?)» // Match either the regular expression below (attempting the next alternative only if this one fails) «\d{4,}» // Match a single digit 0..9 «\d{4,}» // Between 4 and unlimited times, as many times as possible, giving back as needed (greedy) «{4,}» // Or match regular expression number 2 below (the entire group fails if this one fails to match) «\+\w+?» // Match the character “+” literally «\+» // Match a single character that is a “word character” (letters, digits, and underscores) «\w+?» // Between one and unlimited times, as few times as possible, expanding as needed (lazy) «+?» // Match the character “/” literally «/» </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload