regular expression search within command less

xpt

Exactly what kind of regular expression search is supported by less (e.g. can I use \d+)?

man less isn't clear on that, and my primarily google on that didn't return much good hit either. Thx.

DocWeird

Less uses the regular expression library which is compiled with your system.

Sometimes you can find out which version it is by using the --version option:

less --version

The first row may tell you what it was compiled with, for example:

less 481 (PCRE regular expressions)
Copyright (C) 1984-2015  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

More about the subject here: https://stackoverflow.com/questions/14698364/what-is-the-regular-expression-library-supplied-by-my-system

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Multiple search and replace within a string through regular expression in SAS

From Dev

Calculation within Regular Expression

From Dev

less command search

From Java

Regular expression to search for Gadaffi

From Dev

Pip regular expression search

From Dev

Regular expression: Search/replace

From Dev

search for regular expression with the symbol '

From Dev

Regular Expression to search substring

From Dev

Search link with regular expression

From Dev

Regular Expression for the search string

From Dev

Ruby regular expression search

From Dev

vscode Regular expression search?

From Dev

Replace a regular expression within vim with an output produced by a console command with the expression as its argument?

From Dev

Regular Expression in Find command

From Dev

sed command with regular expression

From Dev

Very slow regular expression search

From Dev

regular expression search replace in Sublime

From Dev

Exclude regular expression in file search

From Dev

MongoDB search by tags with regular expression

From Dev

Search And Replace With Regular Expression webuilder

From Dev

Regular Expression search in python if condition

From Dev

search numbers with egrep and regular expression

From Dev

Yum regular expression or wildcard search?

From Dev

Exclude regular expression in file search

From Dev

Very slow regular expression search

From Dev

MongoDB search by tags with regular expression

From Dev

Java multiple regular expression search

From Dev

Search using a regular expression with alternation

From Dev

PhpStorm regular expression search and replace it