Sollicitatievraag bij MongoDB

Design function which performs regex-like operation on a string.