Wednesday, 18 September 2013

How to write regex in JAVA for extracting comments

How to write regex in JAVA for extracting comments

I have a comment coming in as follows
//= abcd .
Now I need to extract abcd . ANy idea? I have written the following
//\\=.*?\\s{2}
in java :)
But it does not work.
Any idea? There is a whitespace between = and after letter d.

No comments:

Post a Comment