I'm finally learning it for real instead of copy pasting from generators. Woohoo!

// - that's what you put your regex pattern inside

/funFunfun/ will match funFunfun but not FunFunFun, funfunfun or any other variant


/funFunfun/ will also match the funFunfun in abcfunFunfunblahblah


But let's say we do want to match all the case variations of funFunfun including FunFunFun, funfunfun etc...

Add the letter i to the end like so: /funFunfun/i

The letter i is one type of 'flag' that modifies regex search


Welcome to DevLog

The open thought platform for developers.

Share your work as you work on it. Easier than a blog, handier than Twitter.

Sign in and write down valuable thoughts that would otherwise be forgotten.