java regex - please help!

Soldato
Joined
29 Oct 2005
Posts
3,298
Hi all,

maybe I am just being stupid, but how can I match a "*" in a java regex?

In perl I just do "\*" but Java tells me this is an invalid escape. Basically I want to match "/* some stuff" but if I were to make a regex "/* (.*)" it would just match "/" many times over.

Thanks

Daven
 
Back
Top Bottom