As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/

Text editor with good regex support?

electricitylikesmeelectricitylikesme Registered User regular
So every now and again I run into RegEx's. I have no real need to learn them, except a compulsion to continue understanding the "in" things in computers, but I have discovered that they are fantastic when you need to do large scale transforms of structured text.

The problem is, I have no editor which makes this process easy. My current favorite website is this one (RegExr) which has an excellent quick reference and shows me in real time what I'm writing, so I can figure things out. It's how I've been learning so far, and I also use it for practical tasks.

Is there any free software though which will let me do something similar locally though? I'd kind of like not to be dependent on a website's continued existence to process text/test out regex's, and unfortunately, Notepad++'s support is pretty poor.

electricitylikesme on

Posts

  • InfidelInfidel Heretic Registered User regular
    edited January 2011
    I use TextPad a lot and its regex search and replace.

    Infidel on
    OrokosPA.png
  • RSPRSP Registered User regular
    edited January 2011
    Rexexps are a unix standby and correspondingly the editors that make best use of them are *nix natives. Most have windows ports though - look into vi, emacs, and acme.

    RSP on
  • Baron DirigibleBaron Dirigible Registered User regular
    edited January 2011
    this seems to be exactly what you're looking for!

    [edit: I should add, thanks for the link, that's an awesome website I'll be making use of myself

    Baron Dirigible on
  • electricitylikesmeelectricitylikesme Registered User regular
    edited January 2011
    this seems to be exactly what you're looking for!

    [edit: I should add, thanks for the link, that's an awesome website I'll be making use of myself

    Huh. Perfect!

    Now I feel stupid I didn't find that myself.

    electricitylikesme on
  • Joe KJoe K Registered User regular
    edited January 2011
  • electricitylikesmeelectricitylikesme Registered User regular
    edited January 2011
    Joe K wrote: »
    notepad++

    Notepad++ has bad Regex support. It can do simple functions, but it has no lookahead/lookbehind behavior which severely limits what you can do (or at least, what you can do easily). It's also not very informative about what a regex will do.

    It's why I like RegExr - it tells you exactly what it's doing and why. So it's great for learning or developing a regex, but more importantly it's wonderful when you just need to process a unique bit of text without hassle.

    Don't get me wrong - I love Notepad++ - but it really needs better support for regex's to make it an easy to use tool.

    electricitylikesme on
  • Nierteroth9Nierteroth9 Registered User new member
    edited May 2011
    I've found "Programmer's Notepad" to be one of the best freeware text editors available, supporting a variety of languages and offering a robust regular expression engine. The only negative I've found is that it doesn't support hex expressions (e.g., [\x00-\xFF]).

    Related but separate, the documentation indicates that it doesn't support multi-line expressions, but it can be done with creative use of \w,\W and \s expressions and lookaround constructs.

    http://www.pnotepad.org/

    Nierteroth9 on
Sign In or Register to comment.