I have the following situation that can be seen in this link .
The expression is:
/((^|\s)(right|inner|left)\sjoin\s(.*?)on\s(.*?)(?=(inner|right|where)?))+/gmi
I need to get the conditions that are within on
, plus the other information that is already being captured.
Does anyone have a tip?