Regex

Regex learning

?(?!.]).[^(]) - Select all content between the last ? and the last ) in a line and excludes if ] comes between

useful to remove the query string in a url

uses something called as Negative Lookahead to exclude