DEV Community

loading...

Discussion on: Mastering Regular Expressions

Collapse
learnbyexample profile image
Sundeep

Glanced through the article, seems a nice introduction.

Here's some typos/suggestions I noted down:

  • new RegExp('/a/') should be new RegExp('a')
  • * and ? are switched in the quantifier table
  • [\w] can be simplified to \w
  • \w matches letters, numbers and underscores, not just letters
  • . isn't special inside character class, no need to escape
Collapse
kalashin1 profile image
Kinanee Samson Author

Okay, thanks a lot man.. I'll effect them..