We are giving out christmas codes soon, but we don’t want any users to share the code within our community. User tends to bypass blacklist words using Case/symbols.
our auto-mod bot only supports regex matching.
I would like Redex to match case insensitive and ignore symbols.
regex: THISISCODE
expected match results
THISISCODE
thisiscode
ThīsîscöDé
th.i.siS.çod3
this-is+CoDe
i tried T?H?I?S?I?S?C?O?D?E
doesn’t work
i don’t have other tools to help just redex
can be split into multiple rules(individually), doesn’t have to be one single rule
While we are primarily here to help people with their Free Code Camp progress, we are open to people on other paths, too. Some of what you are asking is pretty trivial in the Free Code Camp context, so you might find that if you’re not getting the instruction and material you need in your current studies, the FCC curriculum will really help you get started. At a modest guess I’d say investing a 4-5 hours working through the curriculum here will really pay off. You can find the curriculum at https://www.freecodecamp.org/learn.
With your current questions, we don’t have enough context to know what you already know or don’t know, so it is impossible to guide you without just telling you the answer (which we won’t do).
It is pretty typical on here for people to share a codepen / repl.it / jsfiddle example of what they have tried so that anyone helping has more of an idea of what help is actually helpful.
Please provide some example of what you’ve tried and I’m sure you’ll get more help.
If you are only interested in learning more about regular expressions, then there are other tools focused on that. regex101.com is a good one for testing and understanding regular expressions, although it isn’t a teaching resource.