Find/Replace and Regular / Allow backslash expressions

Discussion Forums discussion Find/Replace and Regular / Allow backslash expressions

This topic contains 0 voices and has 2 replies.

Viewing 3 posts - 1 through 3 (of 3 total)
Author Posts
Author Posts
June 10, 2008 at 10:18 am #427

Nux
Member

Hi.

In Find/Replace window there are two options – Regular expressions and Allow backslash expressions but it seems to me that when I tick “Regular expressions” the “Allow backslash expressions” doesn’t change anything. “Match whole word” and “Match case” also doesn’t seem to work with RegExp.

So this seems to be a bug or maybe the options should be organized differently e.g.:

* Simple search expressions

[] Match case

[] Match whole word

[] Allow backslash expressions

* Regular expressions

BTW I’ve entered a wish for Find/Replace about PCRE parentheses matching (tagged expressions):

http://code.google.com/p/pnotepad/issues/detail?id=87

That would be an option in Regexp:

* Simple search expressions

[] Match case

[] Match whole word

[] Allow backslash expressions

* Regular expressions

[] PCRE tagged expressions

Having said all that I believe at least “Match case” should also be available for RegExp.

June 10, 2008 at 12:45 pm #15946

simon
Key Master

The current preview release of Programmer’s Notepad (2.0.9.xxx) switches the regular expressions support to a proper perl-compatible form, I closed the request for this.

Last night I committed support for multi-line regular expressions, meaning that you can now search with regex for abcrndef and find that text spanning multiple lines. This will be available in the next build. I also fixed the “match case” option for regex searching too.

Allow backslash expressions is really for non-regular expression use, and I think may well go away once the new regular expressions are finished testing. Previously you had to use them to do multi-line replacements (e.g. rn) because by default Scintilla only supports line-by-line regex.

I’m not sure that Match Whole Word has a lot of meaning for regular expression searches, as will full syntax you can use beginning and end of word boundary markers (b). I’ll probably disable this when regular expressions are selected.

June 10, 2008 at 2:33 pm #15947

Nux
Member

I’m glad to here all that :).

I agree that Match Whole Word is not needed for regexp, but I’m not sure about backslash expressions. I think some users not familiar with regexpes might miss it, but I’m not that kind of user so I won’t complain ;).

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.