1 |
The man page says: |
2 |
|
3 |
The pattern is a regular expression, as recognized by |
4 |
the regular expression library supplied by your system |
5 |
|
6 |
There are many regular expression libraries on my system. |
7 |
|
8 |
Anyway, thank you for the (unexpected) tip: |
9 |
|
10 |
man perlre |
11 |
|
12 |
That says to use \b instead of the decades-old \<. |
13 |
|
14 |
|
15 |
On 07/18/19 20:55, Michael Orlitzky wrote: |
16 |
> On 7/18/19 6:40 PM, n952162 wrote: |
17 |
>> in less(1), how do you search for a pattern at the beginning (or ending) |
18 |
>> of a word. |
19 |
>> |
20 |
> Hit front slash "/" in less, and then type a perl-compatible regular |
21 |
> expression. Specifically, try |
22 |
> |
23 |
> https://www.pcre.org/original/doc/html/pcrepattern.html#smallassertions |
24 |
> |
25 |
> |
26 |
>> Also, where the change is documented. |
27 |
>> |
28 |
> man less |
29 |
> |