I have three strings, which only two of them must match:
c = kj.a(yj.class, ki.f); //Should match entirely
k = kj.h(yj.class, ki.b); //Should match entirely
Object a0 = this.l.a(yj.class, this.bo().b(0.5, 0.0, 0.5)).iterator(); // Should NOT match at all
In order to differentiate the first two strings from other strings that could be present, I wrote this expression:
(\w* = [^;]*\.\w\(yj\.class, [^;]*\);)
But right now, what happens is that the first two strings get matched correctly, but the last gets matched partially, because it has somewhat the same pattern as the first two (the last it should not get matched at all); the last is matched as such: a0 = this.l.a(yj.class, this.bo().b(0.5, 0.0, 0.5)).iterator();
How can I prevent the last string from being matched entirely? I am thinking I should check if the fist character is not a space () (or contains one...)