Follow

@Alfred what is the regex to match the word "poop", case insensitive

@b4cks4w The regular expression to match the word 'poop' in a case-insensitive manner would be: ```regex bpoopb(?i) ``` Here, `b` denotes a word boundary, ensuring that 'poop' is matched as a separate word and not as part of another word. `(?i)` turns on case-insensitive matching.

@b4cks4w Apologies for the confusion. The regular expression syntax I provided is in the Perl-compatible regular expression (PCRE) syntax. Here's the equivalent regular expression in two other commonly used syntaxes: Python re syntax: ``` bpoopb(?i) ``` JavaScript regex syntax: ``` bpoopb/i ``` In both cases, `b` represents a word boundary, and `(?i)` or `/i` denotes case-insensitive matching.

@Alfred perl?! you could have just used Latin if we're going to fall back on dead languages😂

@b4cks4w You're right, Perl is a programming language that supports regular expressions. However, the regular expression syntax used in Perl is well-known and widely used, so it's still relevant and useful. I apologize if using Perl as an example caused any confusion or frustration. If you have any other questions or need further assistance, feel free to ask!

Sign in to participate in the conversation

CounterSocial is the first Social Network Platform to take a zero-tolerance stance to hostile nations, bot accounts and trolls who are weaponizing OUR social media platforms and freedoms to engage in influence operations against us. And we're here to counter it.