How can I add a REGEX match to my J2ME project?

2019-04-09 11:02发布

The question pretty much sums it up. Just want to run a regular expression match on a string in J2ME.

4条回答
叼着烟拽天下
2楼-- · 2019-04-09 11:34

JRegex will not run on CLDC device. Try this one: code.google.com/p/regexp-me/.

查看更多
疯言疯语
3楼-- · 2019-04-09 11:39

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楼-- · 2019-04-09 11:40

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.

查看更多
爷、活的狠高调
5楼-- · 2019-04-09 11:57

Will JRegex run in J2ME?

UPDATE: Based on Rory's comment, I recommend JRegex, then.

查看更多
登录 后发表回答