delorie.com/archives/browse.cgi | search |
gedau AT igor2 DOT repo DOT hu wrote: >On Fri, 28 Aug 2015, DJ Delorie wrote: >>>I support the Rule of Least Surprise, >>The Rule of Least Surpise says if you type in "R12|C4" you should only >>get those two parts, not R123 and LC45 too. >I would agree if it was not regex but plain string matching or some >custom syntax. For people which are not well versed in regexes, the current behaviour (anchored regex) is simpler to understand. So if you want to use it unanchored, it should be a configoption; then again, you might as well type .* before and/or after it when you need that type of behaviour. -- Stephen.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |