I am trying to write a regular expression that matches lines beginning with a hyphen (-) OR that begins with spaces or tabs and then has a hyphen. So it should match the followi
You can use this regex by making 0 or more spaces optional match at beginning:
^\s*-