Regex is cool and weird

yeterday i learn about the wildcard period/dot in regex .
today i’m experimenting with it at work, by trying the ’ could it be’ mind game, as i do, so instead of replacing only one letter with wildcard dot in my regex, i replaced the whole thing with just dots, and matched it using the method and it got me all the words with that same number of letters that match the number of dots.
this is cool!
but it started to get weird resulting in word and half string returned and stuff.
sorry if i wasted your time.

Yeah, it is weird. And I always forget the little tricks… But man, is it powerful.

1 Like

Regular expressions are so fun to write and so horrible to read.