Hmm. Escaping every character sounds like it might be workable. I'll give
it a try.
Larry
On Tue, Jan 6, 2009 at 5:24 PM, Martin Davis <mbda...@refractions.net>wrote:
> Could you still use regex matching on the back end, but just internally
> escape the raw string input to turn it into a pattern? I think this
> should be possible.... maybe by simpling escaping every char in the
> input string.
>
> Larry Becker wrote:
> > Yes, Eclipse has that option, however it would be much more difficult
> > to program without using the pattern matcher. It would basically
> > revert to a simple exact match string comparison.
> >
> > Larry
> >
> > On Tue, Jan 6, 2009 at 4:29 PM, Martin Davis <mbda...@refractions.net
> > <mailto:mbda...@refractions.net>> wrote:
> >
> > 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>
> > <mailto: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>>
> > >> > <mailto: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>>
> > >> > <mailto: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>>
> > >> > <mailto: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>
> > >> <mailto: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>
> > >> <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
> > >
> > >
> >
> > --
> > 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>
> > 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
> >
>
> --
> 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
>
--
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