Search for and extract patterns from text using regular expressions!
Regex is a powerful text manipulation tool, and today we're excited to announce the new Match Regex action block!
Previously, you could manipulate text in your endpoints through the Manipulate Text block, which enables simple operations such as substring, character counts, to uppercase, etc. The Match Regex block brings a whole new layer to text manipulation by allowing you to search for and extract more comprehensive patterns from pieces of text with the power of regular expressions.
The Match Regex action is now available for all users in the Avicenna Workshop!
There are so many ways to use this powerful action, and we can't wait to see what you'll do with it! Below, for example, is an endpoint we made to comprehensively detect scam messages from Discord, using known patterns that scammers use.
Endpoint using the Match Regex action to detect scam messages
Full documentation on how to use the Match Regex action and what its responses look like is available in the Avicenna Docs.
As always, feel free to join the Avicenna's official Discord server for quick human support, bug reporting, and feature requests!