Lemmy created a perfect regex of every possible variation of the n-word.
\bn(i|1)g(\b|g?(a|er)?(s|z)?)\b
https://github.com/LemmyNet/lemmy/blob/15710a05958fb7e3ba7249ae6c928b54aac09e70/lemmy_utils/src/utils.rs#L10
@alex trying to make a regex to validate email addresses is usually a bad idea. Email addresses are weird.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community. All cultures welcome. Hate speech and harassment strictly forbidden.