For example, I have the following content in the buffer:
123
1234
12345
123456
1234567
To match the 4 numbers, I need the regular expression of \d{4}
.
I would like to do the same in Emacs, when I press C-s and type the regexp.
When I'm looking in the documentation of Emacs regexp, many various regexp, Emacs own regexp, applications in Emacs Lisp, and so on, it's intensively documented.
I just want to have interactive search, type the regexp \d{4}
and find the match. How could I apply that? The documentation gave no directly answer on this.
C-M-s
and type[0-9]{4}
. As far as I know that is the emacs-way.