Searching for regular expressions using regxp

Im having a problem searching for instuctions using regular expressions from regxp and I can't find the correct syntax (probably because jakarta.apache.org don't seem to like giving real documentation in most cases).

Here is my code -

for (Iterator it = finder.search("invokespecial"); it.hasNext(); )

{

This works no problem but what I would really like to do is find invokespecial, invokestatic and invokevirtual.

Ive tried invoke* but that wont work for me but they say that it uses regular expressions so would anyone have any idea how to find these keywords?

[688 byte] By [colly10a] at [2007-10-2 5:30:44]
# 1
"invokespecial|invokestatic|invokevirtual"
sabre150a at 2007-7-16 1:41:45 > top of Java-index,Java Essentials,New To Java...
# 2
You can also use "invoke.*"You need the . to say any letter, and the * says any number of them (0+).You could also use "invoke.+" to get at least one letter after the invoke.Baron Samedi
BaronSamedia at 2007-7-16 1:41:45 > top of Java-index,Java Essentials,New To Java...
# 3

> Ive tried invoke* but that wont work for me but they

> say that it uses regular expressions so would anyone

> have any idea how to find these keywords?

"invoke*" means any string starting with the prefix "invok" and with zero or more 'e' characters after the prefix. It would match "invok", "invoke", "invokee", and so on.

Baron Samedi

BaronSamedia at 2007-7-16 1:41:45 > top of Java-index,Java Essentials,New To Java...
# 4
> "invokespecial|invokestatic|invokevirtual"Thanks, you got it in one, I really appreciate that
colly10a at 2007-7-16 1:41:45 > top of Java-index,Java Essentials,New To Java...
# 5
> "invokespecial|invokestatic|invokevirtual"Abuse a capturing group and reduce the resulting DFA and constructiontime quite a bit like this: "invoke(special|static|virtual)"kind regards,Jos
JosAHa at 2007-7-16 1:41:45 > top of Java-index,Java Essentials,New To Java...