DEV Community

Discussion on: My Regex Cheatsheet - 25 Example Regex Rules

Collapse
 
jorjeb profile image
Jorje Barrera

Maybe you meant /h.*llo/i on line 16 because it won't match either 'heeeeeeeeeeeello' or 'heasdfasdfasdfllo'. Also, * means zero or more of the preceding character.

Collapse
 
tylerzey profile image
Tyler Zey🔥

updated the gist. thanks