为程序员提供支持正则表达式的免费 Windows GUI 文本编辑器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2297569/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Free Windows GUI text editor supporting Regular Expressions, for programmers?
提问by John K
Looking for a freeWindows GUI text editor that supports solid1regular expressions for its Find/Replace features, for programmers to use.
正在寻找一个免费的Windows GUI 文本编辑器,它支持固定1正则表达式的查找/替换功能,供程序员使用。
Familiar with Vim, Ed, Emacs, etc. Not looking for a command-based editor. Will give chosen editor to team members already familiar with Regular Expressions, but don't want learning curve incurred to use the editor itself.
熟悉Vim、Ed、Emacs等。不找基于命令的编辑器。将选择的编辑器提供给已经熟悉正则表达式的团队成员,但不希望使用编辑器本身产生学习曲线。
1: "solid" meaning: the newest syntax or features implemented.
1: “solid” 含义:最新的语法或实现的功能。
回答by jussij
回答by aleemb
Notepad RE(PCRE regex support) and Programmers Notepad(PERL regex support) have both worked out really well for me. The former is a good replacement for Notepad.
Notepad RE(PCRE regex 支持)和Programmers Notepad(PERL regex 支持)对我来说都非常有效。前者是记事本的良好替代品。
Notepad++ is useful for less complex regular expressions.
Notepad++ 对于不太复杂的正则表达式很有用。
回答by ridgerunner
EditPadLite 7(the free-for-non-commercial-use scaled-down version of EditpadPro) now provides regex search and replace.
EditPadLite 7(免费用于非商业用途的 EditpadPro 缩小版)现在提供正则表达式搜索和替换。
It uses JGSoft's very powerful regex engine.
它使用 JGSoft 非常强大的正则表达式引擎。
Edit 2012-03-12Notepad++is a very popular free editor, but in the past did not have powerful regex (so I have never really used it). However, as of version 6, it now incorporates the very powerful and stable PCRE regex library. Although I'm a die-hard EditPadPro user, I may need to take a second look...
Edit 2012-03-12 Notepad++是一个非常流行的免费编辑器,但过去没有强大的正则表达式(所以我从未真正使用过它)。但是,从版本 6 开始,它现在包含了非常强大且稳定的PCRE 正则表达式库。虽然我是一个顽固的 EditPadPro 用户,但我可能需要再看看......
回答by Bart Kiers
EditPad Proseems to have it all. Although commercial, you can try for free.
EditPad Pro似乎拥有一切。虽然是商业广告,但您可以免费试用。
As a free alternative, I use ConTEXTfrom time to time when I'm on Windows. Although it does not support look-arounds, almost all other PCRE features are supported. It's a nice lightweight text editor with tons of syntax highlighters available.
作为免费的替代方案,我在 Windows 上时不时使用ConTEXT。尽管它不支持环视,但几乎支持所有其他 PCRE 功能。这是一个不错的轻量级文本编辑器,提供大量可用的语法高亮器。
回答by Rhubbarb
Here's an answer in the negative (and only a year late):
这是否定的答案(仅晚了一年):
There are certain editors which are very good in many respects, but that have very poor support for regular expressions: "SciTE", "Programmer's Notepad" a "Notepad++" (which are all free). These are all based on the "Scintilla" library, which has a regex engine that does not even support alternation.
有一些编辑器在很多方面都很好,但对正则表达式的支持很差:“SciTE”、“程序员记事本”和“Notepad++”(都是免费的)。这些都是基于“Scintilla”库,它有一个甚至不支持交替的正则表达式引擎。
Hence, if regexes are important to you, then you should probably avoid those.
因此,如果正则表达式对您很重要,那么您可能应该避免使用它们。
回答by Anon
I've tried a lot of the suggested programs listed above, but to date the only free text editor I've found that has robustsupport (i.e., no bugs, almost all functionality) for regular expressions is jEdit.
我已经尝试了很多上面列出的推荐程序,但迄今为止,我发现唯一一个对正则表达式具有强大支持(即,没有错误,几乎所有功能)的免费文本编辑器是jEdit。
All the others have some wierd limitation one way or the other, like the inability to search for newlines.
所有其他的都有一些奇怪的限制,比如无法搜索换行符。
回答by John Feminella
Take a look at notepad++
, which is free and supports all kinds of regexy goodness.
看看notepad++
,它是免费的并且支持各种正则表达式的优点。
Get the PortableApps versionand you can keep it on a keydrive all the time -- handy for a mobile dev platform.
获取PortableApps 版本,您可以将其一直保存在一个密钥驱动器上——对于移动开发平台来说非常方便。
回答by user717236
I was looking for a free text GUI text editor with full or comprehensive regex support (including lookahead/lookbehind assertions) AND the ability to search across multiple files. Zeus Lite has support but it froze with a very large set of files. For my GUI text editor needs, there's a bevy out there. When I'm searching through a very large set of files with comprehensive regex support and I want a FREE program, I use TextCrawler.
我正在寻找一个免费的文本 GUI 文本编辑器,它具有完整或全面的正则表达式支持(包括前瞻/后视断言)以及跨多个文件搜索的能力。Zeus Lite 有支持,但它被大量文件冻结。对于我的 GUI 文本编辑器需求,这里有一大群人。当我搜索具有全面正则表达式支持的非常大的文件集并且我想要一个免费程序时,我使用 TextCrawler。
TestCrawleris NOT a GUI text editor, but for my needs, it serves a complimentary role to your GUI text editor of choice.
TestCrawler不是 GUI 文本编辑器,但根据我的需要,它为您选择的 GUI 文本编辑器提供了补充作用。
回答by Abhishek Anand
I have often used regex find/replace in Netbeans in the past. It can handle multiple files (filenames can be specified by regexp too!)
过去我经常在 Netbeans 中使用正则表达式查找/替换。它可以处理多个文件(文件名也可以由正则表达式指定!)
回答by blackweta
Another good one that I use - I like it better than notepad++ and ConTEXT - is PSPadIt has a great set of features and can load larger files than notepad++.
我使用的另一个很好的 - 我比记事本 ++ 和 ConTEXT 更喜欢它 - 是PSPad它具有一组很棒的功能,并且可以加载比记事本 ++ 更大的文件。
A REALLY fully featured light-weight editor that I use to replace notepad - but has many of the features of PSPad including regular expression search is Notepad2
我用来替换记事本的真正功能齐全的轻量级编辑器 - 但具有 PSPad 的许多功能,包括正则表达式搜索是Notepad2