Regular Expressions library for Delphi
This "Swiss knife" library is a must have tool for any string parsing project.
unaRE.pas unit contains functions like rematch() and replace(), which take subject string and regex to match it with.
Here are some samples of regular expressions and matches:
To replace matches use replace() function, which can include backreferences:
In addition the unaRegExp class also defined in unaRE.pas unit provides an easy way for matching different strings with same RegEx avoiding its parsing.
Package includes two console samples which shows how to use the library.