This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
regex4ls-1.0.0
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