| Wildcard | Matches |
| ? | Any one character |
| # | Any one digit from 0 through 9 |
| * | Any number of characters (zero or more) |
| [characters] | Any one of the characters in the list or range specified here |
| [!characters] | Any one character not included in the list or range of characters specified here |
Like Equivalent
I am looking for an equivalent to the Like function in LotusScript but in Java. I need this to complete Java portion of Open Audit. Any one willing to help? The code should conform to the following criteria.
Well you need a regex engine such as the ones built into Java 1.4.2 (Notes 7) in the java.util.regex package or use an external package such as Apache Jakarta ORO. Using the regex engine should be pretty straight forward. I normally use http://www.javaregex.com/test.html to test my regex before programming. Let me know if you need assistance. /lekkim
I would like to make it Notes 6 compatable using the information provided. Thanks.
Not an ideal solution – but have you considered evaluating the @Matches formula? The syntax isn’t identical, but it seems close enough that it shouldn’t be too difficult to convert before you evaluate the formula.
I like the idea of using the evaluate, then it will be consistant for both languages and I have less work to do.
Now I have a decission to make because the like for LotusScript is different than Formula.
So using the Like with the Evaluate is not really an option because the Formula Like is just bad. The Matches operation on the other hand has some advantages because it has more options.
Thanks Matt!
This might work (oldie but goodie):
{ Link }
Thanks, Julian. That is just what I was looking for.