im new for regular expressions in general, and I'm starting to read more about them, so be careful :-)
I want to find all words starting with my("or my('. The word itself can contain underscores, characters, numbers, basically any char. But it should end in ")or ').
So, I tried the following:
Pattern.compile("_(\"(.*)\")"); // for underscores first, instead of my
and
Pattern.compile("(my)(\"(.*)\")");
But it also gives me other things, and I cannot understand why and where I am making a thinking mistake ...
thank
source
share