You can try
^\s*-
^
: start of string\s*
: zero or more whitespace characters-
: a literal-
(you don’t need to escape this outside a character class)
You can try
^\s*-
^
: start of string\s*
: zero or more whitespace characters-
: a literal -
(you don’t need to escape this outside a character class)