Regular expressions are a set of rules that tell computers how to analyze text for patterns. You might use a regular expression to determine whether text meets a certain set of criteria, and potentially act on it by replacing and capturing matches. The Piecewise Regular Expressions add-on adds 4 blocks that allow you to utilize regular expressions.
With the Piecewise Regular Expressions add-on, you can use regular expressions to determine whether, for example:
- a file has a certain extension
- a message contains a URL
- a message contains characters that do not appear in a particular script (i.e. Latin)
- arbitrary text starts with or ends with a particular pattern