Test, validate and match regular expressions
This regex matches the literal phrase 'I am a' followed by either 'student' or 'Engineer' using a case-sensitive alternation group. The 'g' flag finds all occurrences in a text, while the 'm' flag enables multiline matching so the pattern works across lines. Common use cases include extracting self-introductions, classifying professions in text, or validating user profile statements.