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.

WildcardMatches
?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

6 thoughts on “Like Equivalent

  1. 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.

  2. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">