Tag Archives: regex

Greedy Regular Expressions

By default the pattern matching in regular expressions is greedy in nature. The regex engine will try to match the largest string possible for the given expression rather than the first smallest match, which may not be desired behavior every … more

Tags: , ,
Posted in lab | Leave a comment
• • •