Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

regex4ls-1.0.0

Compare
Choose a tag to compare
@albers albers released this 21 Jan 16:13
· 6 commits to master since this release

Changes

This initial release provides the LotusScript class SimpleRegexMatcher.

The SimpleRegexMatcher can determine whether a text matches a pattern.
In case of a match, 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

Example Code

Search for an agent with licence to kill (00x):

Use "Regular Expressions"
Dim Matcher As New SimpleRegexMatcher
If Matcher.matches("James Bond is agent 007.", "\b00\d\b") Then
    ' This prints "found agent #007"
    Print "found agent #" & Matcher.match
End If