Engrain by ByteRush

JS.09 2 concepts

Regular expressions

Read, write and test regexes for validation and parsing.

  1. JS.09.01Regex basicsJuniorBeing written
  2. JS.09.02Groups, lookarounds and Unicode + Regex safety and when not to use regexMid-levelBeing written

Interview questions in this module

  1. What is the difference between greedy and lazy quantifiers?
  2. Why does calling test twice on a global regex give different results?
  3. What is ReDoS and how do you avoid it?
  4. Write a regex to validate an Indian PIN code / a hex colour.