Several years ago, I specialized in Delphi software development.
Amongst several other endeavors, I wrote and sold a Regular Expression matcher. Well, it turns out that my matcher has a significant bug that was only just noticed by a user - handling of "$" to require a match to finish at the end of the line was broken.
Yikes!
For future reference of anyone consulting with Professor Google or Doctor Bing, here's the fix.
The code inside TniRegularExpressionMatcher.MatchExpression is missing a check for mfFinishOnly.
Inside the repeat loop: