问题
The question pretty much sums it up. Just want to run a regular expression match on a string in J2ME.
回答1:
JRegex will not run on CLDC device. Try this one: code.google.com/p/regexp-me/.
回答2:
Will JRegex run in J2ME?
UPDATE: Based on Rory's comment, I recommend JRegex, then.
回答3:
JRegex doesn't compile on J2ME (at least in the blackberry dev environment). I'm interested in a regex library as well but JRegex doesn't seem to work for this purpose.
回答4:
It's hard to tell what runs on J2ME due to the extreme old age of J2ME's API support, but try Apache ORO. That's sufficiently old, crusty and obsolete that it may, if you're lucky, work on J2ME.
来源:https://stackoverflow.com/questions/121988/how-can-i-add-a-regex-match-to-my-j2me-project