I am currently using VSCode on Ubuntu, which does not currently support lookbehind in their search (although it is in the pipelines). Are there any GUI code editors for Linux that does support lookbehinds in search right now? (preferrably free, as in beer)
-
1Sublime can do, but is not free. Should I add as answer anyway?– pLumoDec 4, 2018 at 17:17
-
Can confirm that Sublime Text works with lookbehind (even negative lookbehind). Might as well add it, and I will remove the word 'free' from my question.– d4nyllDec 4, 2018 at 20:08
4 Answers
Sublime
Sublime can handle lookahead and lookbehind.
abc
- Search for
(?<=a)b
finds b - Search for
(?<=a)c
gives no results
Sublime is proprietary software.
Sublime Text may be downloaded and evaluated for free, however a license must be purchased for continued use.
Atom
Lookbehind does not work, while lookahead works (?!).
But you can use \K
in a similar manner.
abc
- Search for
(?<=a)b
gives Invalid group error. - Search for
a\Kb
finds b. - Search for
a\Kc
gives no results. - Search for
b(?=c)
finds b. - Search for
a(?=c)
gives no results
-
Thanks! Since
\K
is a Perl-flavoured regex, I tried the\K
with the Use PCRE2 option enabled in VSCode and it works! Do you have any idea how to do the same with negative lookbehind?– d4nyllDec 4, 2018 at 19:52
Geany
Geany can handle lookahead and lookbehind.
abc
- Search for
(?<=a)b
finds b - Search for
(?<=a)c
gives no results
-
-
I just downloaded Geany and tried a dummy command
grep -nHIrE -- (?<=d)ev (in directory: /path/to/dir)
and it didn't work. Do I have to install some kind of plugins?– d4nyllDec 4, 2018 at 20:06 -
1
-
I used the search functionality in Geany. This is the command that is printed out in the Messages tab at the bottom.– d4nyllDec 5, 2018 at 11:16
-
1Did you use "Find in files" ? That uses
grep
, but normal find (Ctrl+F) does not print anything in Messages.– pLumoDec 5, 2018 at 12:12
Try https://ace.c9.io or http://lighttable.com also it would help if you told us what language you are coding in
-
1
-
It doesn't really matter what language I am coding in, they are all just text files.– d4nyllDec 5, 2018 at 11:17