Test, validate and match regular expressions
This regex is designed to extract alphanumeric promotional codes that are between 2 and 14 characters long. It searches for text containing 'Promo code -', 'Code =', or 'Coupon =' surrounded by whitespace, capturing the code itself into one of three capture groups. It is particularly useful in automation workflows, like Integromat (Make), to parse receipts, emails, or order data for applied discounts.