regx backslashed parens make me miserable

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
roadworrier
Posts: 4
Joined: Mon May 03, 2004 8:49 pm

regx backslashed parens make me miserable

Post by roadworrier »

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...)
Last edited by roadworrier on Mon May 03, 2004 9:14 pm, edited 1 time in total.
User avatar
BenjiSmith
Posts: 49
Joined: Fri Jan 16, 2004 9:37 pm
Contact:

Post by BenjiSmith »

Amen to that. The backslashed parentheses drive me fucking insane.
User avatar
s_reynisson
Posts: 939
Joined: Tue May 06, 2003 1:59 pm

Post by s_reynisson »

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
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Enhancements not need to correct that backslash issue with RegEx.

The default is not to use POSIX syntax.

Easy to correct:
Configure, Preferences, Editor.
Put a checkmark in "Use POSIX regular expression syntax"
Apply and Save the change.
Hope this was helpful.............good luck,
Bob
roadworrier
Posts: 4
Joined: Mon May 03, 2004 8:49 pm

posix vs posixless

Post by roadworrier »

cool! thank you guys for letting me know all I needed to do was go POSIX!!! I'm sooo much happier now!
Post Reply