← Microsoft questions

Implement RegEx substring matching with anchors

Filed under Microsoft

Implement a RegEx substring matching function that handles anchors: a pattern preceded by '^' matches the start of the string, a pattern ending with '$' matches the end of the string, and otherwise…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.