Is it worth having an option to choose plain text or regex? Some text editors do this. That way if a search string contains some of the (numerous) special regex chars, the user doesn't have to escape everything in sight.
M Michael Michaud wrote: > Larry Becker a écrit : > >>> @Larry : I think that the use of regexes should be mentionned in the >>> user interface of your search tool >>> One reason is that the user will have to escape regex metacharacter if >>> he wants to make a simple search on (, [ ,*... >>> >> I agree. I was just intimidated by the complexity of explaining this >> in a sidebar. :-) Perhaps it would be enough to list the "special >> characters". >> > Of course, I didn't think of explaining regex syntax in the sidebar, but > just mentionning that regex syntax can (or must ?) be used in the > textfield so that users are aware that they can use or learn how to use > this powerful syntax. > > Michaël > >> Larry >> >> On Tue, Jan 6, 2009 at 1:20 PM, Michael Michaud >> <michael.mich...@free.fr <mailto:michael.mich...@free.fr>> wrote: >> >> Hi, >> >> For a one page cheatsheet, look at >> >> http://www.addedbytes.com/download/regular-expressions-cheat-sheet-v1/pdf/ >> or >> >> http://www.omicentral.com/cheatsheets/JavaRegularExpressionsCheatSheet.pdf >> >> for a full site dedicated to regex : >> http://www.regular-expressions.info/ >> >> note : regex is also available in OJ's simple query plugin >> ...and in postgresql (operator ~) >> >> @Larry : I think that the use of regexes should be mentionned in the >> user interface of your search tool >> One reason is that the user will have to escape regex metacharacter if >> he wants to make a simple search on (, [ ,*... >> >> Michaël >> >> >> Larry Becker a écrit : >> > That's it. I've looked for a better (more user oriented) reference, >> > but never found one. >> > >> > Larry >> > >> > On Tue, Jan 6, 2009 at 12:00 PM, Martin Davis >> <mbda...@refractions.net <mailto:mbda...@refractions.net> >> > <mailto:mbda...@refractions.net >> <mailto:mbda...@refractions.net>>> wrote: >> > >> > Perhaps >> > >> > >> http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html >> > >> > ?? >> > >> > Stefan Steiniger wrote: >> > > >> > >> By the way, since it uses the Java pattern matcher, >> Search All >> > >> Attributes supports many different meta-characters to control >> > the search >> > >> such as ^ to match the start of a line and $ to match the >> end. >> > >> >> > > oha..interesting.. how to get to know these chars? >> > > is there a table? >> > > >> > > stefan >> > > >> > > >> > >> >> ------------------------------------------------------------------------------ >> > > Check out the new SourceForge.net Marketplace. >> > > It is the best place to buy or sell services for >> > > just about anything Open Source. >> > > http://p.sf.net/sfu/Xq1LFB >> > > _______________________________________________ >> > > Jump-pilot-devel mailing list >> > > Jump-pilot-devel@lists.sourceforge.net >> <mailto:Jump-pilot-devel@lists.sourceforge.net> >> > <mailto:Jump-pilot-devel@lists.sourceforge.net >> <mailto:Jump-pilot-devel@lists.sourceforge.net>> >> > > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > > >> > > >> > >> > -- >> > Martin Davis >> > Senior Technical Architect >> > Refractions Research, Inc. >> > (250) 383-3022 >> > >> > >> > >> >> ------------------------------------------------------------------------------ >> > Check out the new SourceForge.net Marketplace. >> > It is the best place to buy or sell services for >> > just about anything Open Source. >> > http://p.sf.net/sfu/Xq1LFB >> > _______________________________________________ >> > Jump-pilot-devel mailing list >> > Jump-pilot-devel@lists.sourceforge.net >> <mailto:Jump-pilot-devel@lists.sourceforge.net> >> > <mailto:Jump-pilot-devel@lists.sourceforge.net >> <mailto:Jump-pilot-devel@lists.sourceforge.net>> >> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > >> > >> > >> > >> > -- >> > http://amusingprogrammer.blogspot.com/ >> > >> ------------------------------------------------------------------------ >> > >> > >> >> ------------------------------------------------------------------------------ >> > Check out the new SourceForge.net Marketplace. >> > It is the best place to buy or sell services for >> > just about anything Open Source. >> > http://p.sf.net/sfu/Xq1LFB >> > >> ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Jump-pilot-devel mailing list >> > Jump-pilot-devel@lists.sourceforge.net >> <mailto:Jump-pilot-devel@lists.sourceforge.net> >> > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> > >> >> >> >> ------------------------------------------------------------------------------ >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> <mailto:Jump-pilot-devel@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> >> >> >> -- >> http://amusingprogrammer.blogspot.com/ >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------------ >> Check out the new SourceForge.net Marketplace. >> It is the best place to buy or sell services for >> just about anything Open Source. >> http://p.sf.net/sfu/Xq1LFB >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Jump-pilot-devel mailing list >> Jump-pilot-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel >> >> > > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > -- Martin Davis Senior Technical Architect Refractions Research, Inc. (250) 383-3022 ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel