regx backslashed parens make me miserable
Posted: Mon May 03, 2004 8:55 pm
I guess the subject line says it all, but I'd really much rather backslash parens when I rarely use them, than have to backslash the parens every time I'm trying to get replace values. I've been using TextPad for years (and I love TextPad), but it finally just bugged me enough to post this comment.
This was the search and replace I just did:
"\([^"]*\)"\([^"]*\)"\([^"]*\)",
"\3"\2"\1",
(in addition to being less annoying, getting rid of the parents would match perl s// and other unix search and replaces like that...)
This was the search and replace I just did:
"\([^"]*\)"\([^"]*\)"\([^"]*\)",
"\3"\2"\1",
(in addition to being less annoying, getting rid of the parents would match perl s// and other unix search and replaces like that...)