* Start Find Files
* Search for nothing
* Enable RegEx
* Click Start search
* No files are found (shouldn't it find all files?)
Close Find Files dialog and then:
* Start Find Files
* Search for "aa"
* Enable RegEx
* Click Start search
* All files containing "aa" are found
* Do not close the dialog
* Search for nothing
(* RegEx still is enabled)
* Click Start search
* All files containing "aa" are found while searching for an empty regular expression
Search with RegEx - initialization error
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I found an interesting discussion about what an empty regular expression means at:
http://www.nntp.perl.org/group/perl.perl5.porters/2006/12/msg119324.html
A small quote from that discussion:
http://www.nntp.perl.org/group/perl.perl5.porters/2006/12/msg119324.html
A small quote from that discussion:
This is actually documented behaviour. The empty pattern when used in
a m// or s/// match operator is special cased to mean the pattern used
in the last successful match.
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: