rw-book-cover

Metadata

Highlights

  • ^ - start of string (means that the input string must start with the next character after that. Not suitable if you don’t know the first character of the input string). (View Highlight)
  • $ - end of string (means that all conditions before this character will be the final result of the input string and after them there is nothing further. Not suitable if you want to return several results from the input string). (View Highlight)
  • * - means that the previous condition before the given symbol may occur one or more times or not at all (respectively, it may be repeated). (View Highlight)
  • + - means that the previous condition before this symbol must occur one or more times (respectively, it can be repeated). (View Highlight)
  • [a-z] - enumeration of a valid character in the input string, that is, it can be any lowercase Latin letter (a or b or c … or x or y or z). (View Highlight)
  • [0-9] - enumeration of a valid character in the input string, that is, it can be any lowercase Latin letter (1 or 2 or 3 … or 7 or 8 or 9). (View Highlight)
  • . - any single character. (View Highlight)
  • \ - selection of any special character. (View Highlight)
  • | – OR logical operation (condition to the left or the condition to the right of this operand must be fulfilled) (View Highlight)
  • \d[0-9] - any character from 0 to 9 (View Highlight)
  • \D[^0-9] - any character except numbers (View Highlight)
  • \w[a-zA-Z0-9_] - any Latin character, all numbers and “_” (View Highlight)
  • \W[^a-zA-Z0-9_] – any character except Latin characters, numbers and “_” (View Highlight)
  • \s[ ] - space only (View Highlight)
  • \S[^ ] - any character except space (View Highlight)
  • {3} – required number of characters for the condition (View Highlight)
  • {3.5} - min. and max. number of characters for the condition (View Highlight)
    • Note: Should be {3,5}
  • {3,} – mandatory min. number and unlimited max. quantity (View Highlight)
  • Regex condition length (View Highlight)