Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If lookaheads are allowed</p> <pre><code>((2[0-9][0-9][0-9].*)(?=\?\w+)|(2[0-9][0-9][0-9].*)(?=/\s+)|(2[0-9][0-9][0-9].*).*\w) </code></pre> <p>Copy + Paste this in <a href="http://regexpal.com/" rel="nofollow noreferrer">http://regexpal.com/</a></p> <p>See here with ruby regex tester: <a href="http://rubular.com/r/uoLLvTwkaz" rel="nofollow noreferrer">http://rubular.com/r/uoLLvTwkaz</a></p> <p>Image using javascript regex, but it works out the same</p> <p><img src="https://i.stack.imgur.com/EqXZp.png" alt="enter image description here"></p> <p><code>(?=)</code> is just a a lookahead </p> <p>I basically set up three matches from 2XXX up to (in this <em>order</em>):</p> <pre><code>(?=\?\w+) # lookahead for a question mark followed by one or more word characters (?=/\s+) # lookahead for a slash followed by one or more whitespace characters .*\w # match up to the last word character </code></pre> <p>I'm pretty sure that some parentheses were not needed but I just copy pasted.</p> <p>There are essentially two OR <code>|</code> expressions in the <code>(A|B|C)</code> expression. The order matters since it's like a <code>(ifthen|elseif|else)</code> type deal.</p> <p>You can probably fix out the prefix, I just assumed that you wanted 2XXX where X is a digit to match.</p> <p>Also, save the pitchforks everyone, regular expressions are not always the best but it's there for you when you need it.</p> <p>Also, there is xkcd (<a href="https://xkcd.com/208/" rel="nofollow noreferrer">https://xkcd.com/208/</a>) for everything:</p> <p><img src="https://i.stack.imgur.com/Ji7XK.png" alt="https://xkcd.com/208/"></p>
    singulars
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    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