This question already has an answer here:

I'm using less to view a large file and I want to search for a pattern with wildcards — e.g., " x 1??" where ? is any character. Does less support that, and if so how would I do that interactively?

marked as duplicate by Gilles, jasonwryan, Stephen Kitt, mdpc, Networker Apr 7 '15 at 11:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 3
    less search is regex so x 1.. – jordanm Apr 6 '15 at 15:30
  • You may find this helpful: linux.about.com/library/cmd/blcmdl1_less.htm – Elder Geek Apr 6 '15 at 15:42
  • 1
    Not quite a duplicate: I wasn't able to determine through previous searching that less search uses regex, so @jordanm has the answer. Could he post it as such? – feetwet Apr 6 '15 at 23:20

The search in less uses regular expressions. To accomplish the search you are looking for, simply replace the shell wildcard ? with ..

/x 1..

Not the answer you're looking for? Browse other questions tagged or ask your own question.