Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>regex</h2> <pre><code>/(?=^\w{6,20}$)(?=\w*[A-Z])^\w+$/ </code></pre> <h2>tests</h2> <pre><code>a # fail aX # fail ab # fail aXb # fail abc # fail abXc # fail abcd # fail abcXd # fail abcde # fail abcdXe # pass abcdef # fail abcdeXf # pass abcdefg # fail abXcdefg # pass abcdefgh # fail abcXdefgh # pass abcdefghi # fail abcdXefghi # pass abcdefghij # fail abcdeXfghij # pass abcdefghijk # fail abcdefXghijk # pass abcdefghijkl # fail abcdefgXhijkl # pass abcdefghijklm # fail abcdefghXijklm # pass abcdefghijklmn # fail abcXdefghijklmn # pass abcdefghijklmno # fail abcdXefghijklmno # pass abcdefghijklmnop # fail abcdeXfghijklmnop # pass abcdefghijklmnopq # fail abcdefXghijklmnopq # pass abcdefghijklmnopqr # fail abcdefgXhijklmnopqr # pass abcdefghijklmnopqrs # fail abcdefghXijklmnopqrs # pass abcdefghijklmnopqrst # fail abcdefghiXjklmnopqrst # fail abcdefghijklmnopqrstu # fail abcdefghijXklmnopqrstu # fail </code></pre> <h2>regex explanation</h2> <pre><code>NODE EXPLANATION -------------------------------------------------------------------------------- (?= look ahead to see if there is: -------------------------------------------------------------------------------- ^ the beginning of the string -------------------------------------------------------------------------------- \w{6,20} word characters (a-z, A-Z, 0-9, _) (between 6 and 20 times (matching the most amount possible)) -------------------------------------------------------------------------------- $ before an optional \n, and the end of the string -------------------------------------------------------------------------------- ) end of look-ahead -------------------------------------------------------------------------------- (?= look ahead to see if there is: -------------------------------------------------------------------------------- \w* word characters (a-z, A-Z, 0-9, _) (0 or more times (matching the most amount possible)) -------------------------------------------------------------------------------- [A-Z] any character of: 'A' to 'Z' -------------------------------------------------------------------------------- ) end of look-ahead -------------------------------------------------------------------------------- ^ the beginning of the string -------------------------------------------------------------------------------- \w+ word characters (a-z, A-Z, 0-9, _) (1 or more times (matching the most amount possible)) -------------------------------------------------------------------------------- $ before an optional \n, and the end of the string </code></pre>
    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.
 

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