0

I need to regain regular expression search pattern while using less command. Is there any way to do that?. Once I start searching the expression disappears.

1
  • What do you mean by "regain the regular expression pattern"?
    – Janis
    May 24, 2015 at 2:16

1 Answer 1

1

When searching in less, matches are highlighted, then you can use n (or N) to search for the next (resp. previous) pattern, and if typing / (to initiate a new search) but using the up/down arrow-keys you can get (inspect and modify) the previous entered regular expression.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .