I have expression like this
R403[i] == 3 and R404[i] == 2 AND R405[i] == 1 and R403[i+1] == 5 and R404[i+1] == 2 AND R405[i+1] == 1 R231[2]
And I want get all occurence of my expression using this regex
[R|M|B].*?\]
But one condition again that I want to apply it must contains variable i
inside so R121[1]
would not be capture.
Anyone can help?