Date Name Downloads
Feb 27, 2015 1.1.1 750
Sep 29, 2010 1.1.0 584
Sep 21, 2010 1.0.0 158
1.0.0
1.0.0
Sep 29, 2010
Apache License
158

This initial release provides the LotusScript class SimpleRegexMatcher.

 
The SimpleRegexMatcher can determine whether a text matches a pattern.
If it does, it gives you access to the matching part of the text via its match property.

The Regular Expressions used in this class follow java.util.regex.Pattern syntax as described in
        http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html

Intended audience: LotusScript developers
 
example code
    Use "Regular Expressions"
    Dim Matcher As New SimpleRegexMatcher
    ' This example searches for an agent with licence to kill.
    If Matcher.matches("James Bond is agent 007.", "\b00\d\b") Then
        Print "found agent #" & Matcher.match
    End If
 
How to install
Download  the file regex4ls-1.0.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", see the above example.