News for hackers. Stuff that matters.
Re:Julie Ann Horvath Describes Sexism and Intimidation Behin... by Crito on Sunday March 16, 2014 @05:02PM (#7411262)
To match dialog but not dialogue in vim:

    dialog\>
...in other regex systems:

    dialog\b
"dialog" as part of a variable name with underscores:

    :%s/dialog_/dialogue_/g
"dialog" as part of a variable name with CamelCase:

    :%s/\([dD]\)ialog\([A-Z][A-z]*\)/\1ialogue\2/g
You don't need to capture every case in a single regex substitution, you can use a handful to cover pretty much every case though. This sort of change should not take more than a few minutes max of developer time.

I don't have experience with them, but I imagine an IDE with refactoring support should make these sort of changes trivial.

There are no comments on this comment yet.