first, this awesome testbed

  1. any string up till a ‘)’ source
    (.*)(?=\))
    
    18.9.99.2.1 (L1)
    
  2. any string with “” and a +
    ^.*?query.*?(?i)".*?"\s\+\s
    
    query = "SELECT asadfasdf something" + somevar + "something"