[ad_1]
You can use negative lookbehind:
String regex = "(?<!GoodClass\\.)\\bNiceMethod\\b";
1
[ad_2]
solved Regular expression to fetch lines evaluating only one part of a string, java
[ad_1]
You can use negative lookbehind:
String regex = "(?<!GoodClass\\.)\\bNiceMethod\\b";
1
[ad_2]
solved Regular expression to fetch lines evaluating only one part of a string, java