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


a quote i like

Take up one idea. Make that one idea your life. Think of it, dream of it, live on that idea. Let the brain, muscles, nerves, every part of your body, be full of that idea, and just leave every other idea alone. This is the way to success. ― Swami Vivekananda