[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-nano] Look ahead on sh.nanorc
From: |
Benno Schulenberg |
Subject: |
Re: [Help-nano] Look ahead on sh.nanorc |
Date: |
Fri, 14 Apr 2017 22:10:16 +0200 |
Hello José,
On Fri, Apr 14, 2017, at 00:43, Jose Antonio Velasco wrote:
> I'd like to know if there's a way I can use look ahead on a regex in
> sh.nanorc file. When I try to use
>
> color brightred "^[[:alpha:]_][[:alnum:]_]*(?==)"
>
> I get the following error
>
> Error in /usr/share/nano/sh.nanorc on line 19: Bad regex
> "^[[:alpha:]_][[:alnum:]_]*(?==)": Invalid preceding regular expression
I too have tried using lookahead in regexes in nano, but it seems
that the regex implementation of glibc does not provide lookahead
nor lookbehind. :|
Benno
--
http://www.fastmail.com - Access all of your messages and folders
wherever you are