Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Short answer</strong></p> <p>Your uid does not begin with a 'p'. All rules are checking that it begins with 'p'.</p> <p><strong>Long answer</strong></p> <pre><code>$match1 = preg_match('/^p[a-z\d][a-z\d][1-6][a-z]\d{2}e$/',$uid); </code></pre> <p>This is checking for something of the format: the letter p, lowercase letter, 1 digit number, lowercase letter, 1 digit number, number from 1 to 6, lowercase letter, number (1 or 2 digits), the letter e</p> <pre><code>$match2 = preg_match('/^p[a-z\d][a-z\d]school$/',$uid); </code></pre> <p>This is checking for something of the format: the letter p, lowercase letter, 1 digit number, lowercase letter, 1 digit number, the word 'school'</p> <pre><code>$match3 = preg_match('/^p[a-z\d][a-z\d]master$/',$uid); </code></pre> <p>This is checking for something of the format: the letter p, lowercase letter, 1 digit number, lowercase letter, 1 digit number, the word 'master'</p> <pre><code>$match4 = preg_match('/^p[a-z\d][a-z\d]ee01$/',$uid); </code></pre> <p>This is checking for something of the format: the letter p, lowercase letter, 1 digit number, lowercase letter, 1 digit number, the string 'ee01'</p> <p><strong>EDIT</strong></p> <p>If you wish to add 'c' to the allowed characters at the start of the matching, you can, for example do:</p> <pre><code>$match1 = preg_match('/^[cp][a-z\d][a-z\d][1-6][a-z]\d{2}e$/',$uid); </code></pre> <p><code>[cp]</code> instead of <code>p</code> checks for EITHER c or p as the first letter.</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. 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