Longest Regex Match Substring

Company: Amazon_30Aug

Difficulty: medium