Build, test, and debug regular expressions
This regex detects mentions of 'sweetie' or 'sweetiebot' in text, optionally prefixed with '@'. It uses non-capturing groups with word boundary alternatives (\W, ^, $) to match whole words only. The global, multiline, and case-insensitive flags allow it to find all matches across multiple lines regardless of capitalization. Useful for bot mention detection in chat applications or forums.