1

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)

  • 1
    Sublime can do, but is not free. Should I add as answer anyway? – pLumo Dec 4 '18 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. – d4nyll Dec 4 '18 at 20:08
1

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.

1

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? – d4nyll Dec 4 '18 at 19:52
0

Geany

Geany can handle lookahead and lookbehind.

abc
  • Search for (?<=a)b finds b
  • Search for (?<=a)c gives no results
  • Geany is such an amazing piece of software. – pLumo Dec 4 '18 at 17:27
  • 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? – d4nyll Dec 4 '18 at 20:06
  • 1
    I don't get it, where did you try this command? – pLumo Dec 5 '18 at 7:35
  • I used the search functionality in Geany. This is the command that is printed out in the Messages tab at the bottom. – d4nyll Dec 5 '18 at 11:16
  • 1
    Did you use "Find in files" ? That uses grep, but normal find (Ctrl+F) does not print anything in Messages. – pLumo Dec 5 '18 at 12:12
0

Try https://ace.c9.io or http://lighttable.com also it would help if you told us what language you are coding in

  • 1
    Should he try or do you know if they can do it ? – pLumo Dec 5 '18 at 7:27
  • It doesn't really matter what language I am coding in, they are all just text files. – d4nyll Dec 5 '18 at 11:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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