From: <ra...@si...> - 2002-05-24 00:11:31
|
On Fri, 24 May 2002, Jamie Cameron wrote: > ra...@si... wrote: > > > > I found out recently that regular expressions while searching for users > > stopped functioning. This apparently is due to the "\Q" and "\E" > > directives for the matching expression. I don't recall these directives > > for regular expressions, and they prevent any regexp matching. Is this a > > bug in the module, or do I need to upgrade my PERL and PERL knowlege? > > It's sort of a feature in webmin 0.970. I previous versions, doing searches > for usernames like joe+fred would not produce the results that people > unfamiliar with regular expressions expected. That's why I put in the \Q > and \E to make the username search field a substring rather than a > regular expression. > > - Jamie > I applaud any feature that makes things work better (the fact that I continue to applaud Webmin should speak for that). Unfortunately, on my Solaris 8 system running 0.970, it doesn't find "randyf+root", nor will it produce the list of all users whose names begin with r (^r). The "matches" argument will only match items where all the characters in the what string appropriately match the field (though this may not be a bug, I personally think the RE approach is better). Of course, maybe the right answer here is to either enhance the search capabilities, or include a "Search by RE" button. In fact, I think that is the fix that I will apply (interested in the patch code?). BTW, one of the reasons that I so much like Webmin, is because if I would prefer behavior to be a little different, I can "make it so". rf |