example file with the content:
// find me val ignore me = "" // I should not be found // find me // find me
I want to find all the lines with
find me using ag silversearcher.
Basically, it should match any line optionally starting with any white space and a double space
I know that:
ag ^// example
only yields in the first line without spaces.
For the beginning of the line I know I can use
^, for whitespace it should be
\s, and my custom string should either be
// or it may need to be to escaped to:
That's why I thought:
ag ^\s*// example ag ^\s*\/\/ example
Should do the trick, yet it finds also only the first line.
How can I match all the lines starting with white space and my custom string?