DEV Community

Discussion on: The Complete Guide to Regular Expressions (Regex)

Collapse
 
crutchcorn profile image
Corbin Crutchley

Sorry for the confusion!

(...) literally is "Any three characters" because each . is "any character".

(hello) would match "hello"

() is just a capturing group in general, not just for any three characters.

I could've written clearer, sorry!