I want to replace a list in the form of
1)
2)
3)
4)
with
*
*
*
I've tried using the regex [0-9]*\)
, but it gives Invalid regexp: "Unmatched ) or \\)"
and [0-9]*\\)
replaces 0 matches.
in regex-builder
, [0-9]*\)
matches the expected items.
I'm using spacemacs 0.300.0
on emacs 26.3
(
match a parenthesis whereas\(
start a regexp group. (When written as a string, the latter is written"\\("
.) – Lindydancer Nov 29 '21 at 19:08