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...)
regx backslashed parens make me miserable
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 4
- Joined: Mon May 03, 2004 8:49 pm
regx backslashed parens make me miserable
Last edited by roadworrier on Mon May 03, 2004 9:14 pm, edited 1 time in total.
- BenjiSmith
- Posts: 49
- Joined: Fri Jan 16, 2004 9:37 pm
- Contact:
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Hmm, while I make no claims to be counted as sane, I do use POSIX style regex's (which can be selected from the Editor page of the Preferences dialog box). The diffrence you can see in TP's help file under "How to Use Regular Expressions", a table that lists the Default Operator and the POSIX Operator. HTH
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
-
- Posts: 4
- Joined: Mon May 03, 2004 8:49 pm
posix vs posixless
cool! thank you guys for letting me know all I needed to do was go POSIX!!! I'm sooo much happier now!