Download the file regex4ls-1.1.0.ls. Using Domino Designer, create a LotusScript library with the name "Regular Expressions".
Copy the contents of the downloaded file into the library. Save.
In your client code (agent, another script library), reference the library with
Use "Regular Expressions".