How to make reverse regex search greedy in emacs?
For example, I have abc 163439 abc in my buffer, and I run Mx search-backward-regexp with the following regexp: 163439\|3 . This regular expression will always find “3” in the buffer, but newest is a long number. Because when he starts the search, he will first meet a "3". In the second attempt, it will start from position “3”, which is inside the number, and it will lower it.
How to find the longest and closest match?
So, I mean, when he meets "3", I want him to check if the matching part of the majority matches.
Necto source share