DEV Community

Discussion on: A regex cheatsheet for all those regex haters (and lovers) 👀

Collapse
 
ryan profile image
Ryan • Edited

Just to nitpick, the second wildcard example should be .*, and your group examples will fail because you didn't capture a space (it is ice cold outside and it is  cold outside match but not it is cold outside)

Regex is great! And not at all as hard as it looks. Although I still don't have the hang of lookahead/lookbehinds yet 😅

Collapse
 
catherinecodes profile image
catherine

Good catch Ryan! Thank you! I've updated the cheatsheet ☺️

I still need some more practice as well 😅lookaheads and lookbehinds were totally new to me! I didn't know about them during my CS lab 😲