.*?any character (except for line terminators), repeated any number of times
Positive Lookbehind(?<=(?:FROM|JOIN)) Non-Capturing Group(?:FROM|JOIN) FROMthe literal text FROM (case sensitive) JOINthe literal text JOIN (case sensitive) \s*any whitespace character, repeated any number of times
.*?any character (except for line terminators), repeated any number of times
\s*any whitespace character, repeated any number of times
Positive Lookahead(?=(?:ON|JOIN|WHERE|LIMIT|GROUP|ORDER|\(|;)) Non-Capturing Group(?:ON|JOIN|WHERE|LIMIT|GROUP|ORDER|\(|;) ONthe literal text ON (case sensitive) JOINthe literal text JOIN (case sensitive) WHEREthe literal text WHERE (case sensitive) LIMITthe literal text LIMIT (case sensitive) GROUPthe literal text GROUP (case sensitive) ORDERthe literal text ORDER (case sensitive) \(the literal ( (4010 / 508 / 2816)
;the literal ; (5910 / 738 / 3B16)
g modifier: global. Finds all matches instead of stopping after the first