I am trying to match only the numbers after the following strings:
sequentialGrid: 650274
parallelGrid: 650274
My goal is to highlight the numbers, via M-x highlight-regexp
after lines beginning with sequentialGrid:
and parallelGrid:
Here was my attempt, using a Perl-like approach:
^sequentialGrid: \([0-9]*\).*/$1/
Unfortunately, Emacs does not support Perl functionality. Thus, I hope my request is not impossible or perhaps someone can offer a convenient workaround.
BTW I verified that ^sequentialGrid: \([0-9]*\).*
highlights the entire line. I just need to extract the number.