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/
Options

Editor w/Regex Find and Replace

Apothe0sisApothe0sis Have you ever questioned the nature of your reality?Registered User regular
So, traditionally, I have used ConTEXT when editing things within a Windows environment. ContEXT has a regex find and replace function, but it's somehow stopped working for things like

Find :
foo(.*)bar

Replace with:
bar$1foo

However, I know it used to work because I've done things like edit csv files for SQL queries using this method. I do recall it being somewhat... touchy in its doing so. But having wrestled with this for the better part of a day, I am ready to abandon the ConTEXT and seek paster greenures. I checked the ConTEXT forums and people 6 years ago were having these issues, but that would seem to be solved given I was doing similar manipulations a few months ago.

So:

test editor with regex F&R GO!

Or how to make ConTEXT work again would also be appreciated.

EDIT:

To hell with ConTEXT, Notepad++ GO

Apothe0sis on

Posts

  • Options
    DaedalusDaedalus Registered User regular
    edited March 2010
    Vim.

    There is no other text editor.

    Daedalus on
  • Options
    xzzyxzzy Registered User regular
    edited March 2010
    There's even a windows version!

    http://www.winvi.de/en/

    It's a pretty great program.. all the vi you could want, but windows conventions work too (using the mouse to cut and paste, etc).

    xzzy on
  • Options
    DaedalusDaedalus Registered User regular
    edited March 2010
    I'm more a fan of the official version myself:

    http://www.vim.org/download.php

    There's a GVim Windows port in there as well, that uses GTK+ for windows.

    Daedalus on
  • Options
    xzzyxzzy Registered User regular
    edited March 2010
    The neat thing about winvi though is it doesn't require an installer. It's just the exe.. put it somewhere convenient, double click, edit away.

    Not that I'm saying it's better, it's just kind of a neat project.

    xzzy on
  • Options
    TaminTamin Registered User regular
    edited March 2010
    I'm using gvim at the moment.

    I was using Notepad++ because we got it installed at work and I wanted to play with tabbed editing it supported.

    Then I realized that a) I kept trying to treat it like a vi session, and b) turns out gvim supports tabs.

    Tamin on
  • Options
    Apothe0sisApothe0sis Have you ever questioned the nature of your reality? Registered User regular
    edited March 2010
    Vim, you say?

    But I am a heathen who uses nano/pico and kwrite.

    Is vim really for me?

    whenever I have tried to use it the fact that I can't type anything drives me batty - obviously there's an edit mode shortcut but you know...

    Is vim that much more loved than emacs?

    Apothe0sis on
  • Options
    DaedalusDaedalus Registered User regular
    edited March 2010
    Vim is modal; you start out in "command mode". To go into "insert mode", where you type in text or whatever, press "i".

    There's a Vim tutorial that comes with it, I think. At least it does on Linux.

    Daedalus on
  • Options
    zeenyzeeny Registered User regular
    edited March 2010
    M-x query-replace-regexp, infidels.

    zeeny on
  • Options
    DaedalusDaedalus Registered User regular
    edited March 2010
    zeeny wrote: »
    M-x query-replace-regexp, infidels.

    or

    :s

    I wonder which one is easier?

    :P

    Daedalus on
  • Options
    SushisourceSushisource Registered User regular
    edited March 2010
    I use Notepad++ for stuff like this in windows

    Sushisource on
    Some drugee on Kavinsky's 1986
    kavinskysig.gif
Sign In or Register to comment.