Regular Expressions allow you to filter your posts in powerful ways. A good place to test new expressions to make sure they work properly is at https://regex101.com
Have fun!
Top-level
Regular Expressions allow you to filter your posts in powerful ways. A good place to test new expressions to make sure they work properly is at https://regex101.com Have fun! 38 comments
@burgatshow @ivory I wasn't sure if modifiers were supported here, since the GUI is a bit misleading. But if so, better use /i @ivory One of my favourite sites is RegExper, which visualises regular expressions. Useful if they are more complex. @ivory which flavor should we pick in the left column to match how Ivory will interpret the regex? @swizzlevixen For basic pattern matching, I didn't change the flavor. I am not a regex expert. Just wanted to provide a basic solution to a very common problem people have with keyword filters. 🙂 If you want to know more about what we use, you can go here: https://unicode-org.github.io/icu/userguide/strings/regexp.html @ivory oh ffs you couldn’t just wrap the keywords in ‘\b…\b’ like everyone else does and all your users expect from decades of Google and other full-text search engines @ivory \byouknowwho\b gets initial Youknowwho and when punctuation follows. @ivory As someone who has been a software developer for over 30 years, I can definitely state that regexes are the work of satan @ivory I've actually found that ChatGPT is really useful for writing RegEx when I can't figure it out myself. |
@ivory well played