
regexp-me
Regexp-me is a Java Me (j2me) regular expression package based on Jakarta Regexp. Regexp-me is CLDC1.0 compatible and has partial Unicode support.
Usage
First you need to import me.regexp
package:
import me.regexp.*;
Here is the basic example of pattern matching:
RE r = new RE("abc(\\w*)"); // Create new pattern
if (r.match("abcdefg")) // Match pattern
System.out.println("oh yeah!"); // Oh Yeah!
More examples here. See API Documentation.
Unicode
To turn on Unicode support in source code you need to use Netbeans preprocessor. In Netbeans IDE go to project Properties - Ablities and add RE_UNICODE ability.
Warning: Unicode support eats memory!
Feedback
Feedback is positively welcomed. Feel free to join regexp-me discussion group.
zobaken -(at)- gmail.com