in reply to regex to substitute 3 stars at beginnning of string with none?

$1 really matches only one star. If you want to capture all three stars in $1, you must use ^([*]{3}) (note that the {} quantifier has moved into the capturing parentheses).

  • Comment on Re: regex to substitute 3 stars at beginnning of string with none?