Re: [JPP-Devel] Search tool for Attributes

2009-01-08 Thread Larry Becker
Martin's solution worked wonderfully. I committed the change last night. A check box was added for Regular Expressions that defaults to off. Larry On Wed, Jan 7, 2009 at 7:57 AM, Larry Becker becker.la...@gmail.com wrote: Hmm. Escaping every character sounds like it might be workable. I'll

Re: [JPP-Devel] Search tool for Attributes

2009-01-08 Thread Stefan Steiniger
thank you both! I would add the plugin to the default-plugins.xml file if you don't mind stefan Larry Becker schrieb: Martin's solution worked wonderfully. I committed the change last night. A check box was added for Regular Expressions that defaults to off. Larry On Wed, Jan 7, 2009

Re: [JPP-Devel] Search tool for Attributes

2009-01-08 Thread Martin Davis
Yay! Larry Becker wrote: Martin's solution worked wonderfully. I committed the change last night. A check box was added for Regular Expressions that defaults to off. Larry On Wed, Jan 7, 2009 at 7:57 AM, Larry Becker becker.la...@gmail.com mailto:becker.la...@gmail.com wrote:

Re: [JPP-Devel] Search tool for Attributes

2009-01-07 Thread Larry Becker
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.netwrote: Could you still use regex matching on the back end, but just internally escape the raw string input to turn it into a pattern?

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
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 $

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
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.netwrote: Perhaps http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html ?? Stefan Steiniger wrote: By the

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Yes, that would be nice. The Pattern language is *very* powerful, but *very* complex too. Hmm... there's a book in there I think - or at least a nice website. The language I think follows most common conventions for regex languages - and I'm pretty sure there's some good general references

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
Check these out: http://leepoint.net/notes-java/data/strings/40regular_expressions/05regex.html http://en.wikipedia.org/wiki/Regular_expression Martin Davis wrote: Yes, that would be nice. The Pattern language is *very* powerful, but *very* complex too. Hmm... there's a book in there I

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
I like the POSIX Basic Regular Expressions section of the Wikipedia article. Still not for the feint-of-heart. On Tue, Jan 6, 2009 at 12:08 PM, Martin Davis mbda...@refractions.netwrote: Check these out: http://leepoint.net/notes-java/data/strings/40regular_expressions/05regex.html

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
It looks to me like the syntax for the POSIX character classes is different on the Wikipedia article to the Java Pattern class. 8^( (You know what they say about standards...) These are quite useful, so this could be important to note. Larry Becker wrote: I like the POSIX Basic Regular

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
This subset looks safe enough: . Matches any single character (many applications exclude newlines, and exactly which characters are considered newlines is flavor, character encoding, and platform specific, but it is safe to assume that the line feed character is included). Within POSIX bracket

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Michael Michaud
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

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Stefan Steiniger
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

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Larry Becker
@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

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Michael Michaud
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

Re: [JPP-Devel] Search tool for Attributes

2009-01-06 Thread Martin Davis
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

Re: [JPP-Devel] Search tool for Attributes

2009-01-05 Thread Larry Becker
Becker becker.la...@gmail.com ha scritto: Da: Larry Becker becker.la...@gmail.com Oggetto: Re: [JPP-Devel] Search tool for Attributes A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Data: Mercoledì 31 dicembre 2008, 23:41 I have completed the Search All Attributes

Re: [JPP-Devel] Search tool for Attributes

2009-01-03 Thread Stefan Steiniger
, Larry Becker becker.la...@gmail.com ha scritto: Da: Larry Becker becker.la...@gmail.com Oggetto: Re: [JPP-Devel] Search tool for Attributes A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Data: Mercoledì 31 dicembre 2008, 23:41 I have completed the Search All Attributes

Re: [JPP-Devel] Search tool for Attributes

2009-01-03 Thread Michael Michaud
organization. Regards Peppe Happy new Year! --- Mer 31/12/08, Larry Becker becker.la...@gmail.com ha scritto: Da: Larry Becker becker.la...@gmail.com Oggetto: Re: [JPP-Devel] Search tool for Attributes A: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Data: Mercoledì 31

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Sunburned Surveyor
selectable layer and a programmatically selectable layer. Bing From: Larry Becker Sent: Tuesday, December 30, 2008 4:12 AM To: OpenJump develop and use Subject: [JPP-Devel] Search tool for Attributes Question: You can use Simple Query to search Attribute fields for specific values, but have you

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Bing Ran
-- From: Sunburned Surveyor sunburned.surve...@gmail.com Sent: Tuesday, December 30, 2008 11:34 PM To: OpenJump develop and use jump-pilot-devel@lists.sourceforge.net Subject: Re: [JPP-Devel] Search tool for Attributes Bing, I had no idea that you could use Lucerne

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Larry Becker
*Sent:* Tuesday, December 30, 2008 11:13 PM *To:* OpenJump develop and use jump-pilot-devel@lists.sourceforge.net *Subject:* Re: [JPP-Devel] Search tool for Attributes Hi Bing, Wow! That was an information-rich post. Using Lucene goes way beyond my usual minimalist approach to feature

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Larry Becker
*Sent:* Tuesday, December 30, 2008 4:12 AM *To:* OpenJump develop and use jump-pilot-devel@lists.sourceforge.net *Subject:* [JPP-Devel] Search tool for Attributes Question: You can use Simple Query to search Attribute fields for specific values, but have you ever wanted to do a Google style

Re: [JPP-Devel] Search tool for Attributes

2008-12-30 Thread Bing Ran
I've already noticed that. That's a nice surprise indeed! From: Larry Becker Sent: Wednesday, December 31, 2008 2:32 AM To: OpenJump develop and use Subject: Re: [JPP-Devel] Search tool for Attributes ... Also, I think that just because something is hidden due to a scale range

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Sunburned Surveyor
I think that would be handy. SS On Mon, Dec 29, 2008 at 12:12 PM, Larry Becker becker.la...@gmail.com wrote: Question: You can use Simple Query to search Attribute fields for specific values, but have you ever wanted to do a Google style search in a map? In other words, search all

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Stefan Steiniger
me too! sounds spectacular :) .. now we need to find a fancy name. stefan Sunburned Surveyor schrieb: I think that would be handy. SS On Mon, Dec 29, 2008 at 12:12 PM, Larry Becker becker.la...@gmail.com wrote: Question: You can use Simple Query to search Attribute fields for specific

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Eric Jarvies
yes, it sounds searchtacular! eric On Dec 29, 2008, at 5:56 PM, Stefan Steiniger wrote: me too! sounds spectacular :) .. now we need to find a fancy name. stefan Sunburned Surveyor schrieb: I think that would be handy. SS On Mon, Dec 29, 2008 at 12:12 PM, Larry Becker

Re: [JPP-Devel] Search tool for Attributes

2008-12-29 Thread Bing Ran
and use Subject: [JPP-Devel] Search tool for Attributes Question: You can use Simple Query to search Attribute fields for specific values, but have you ever wanted to do a Google style search in a map? In other words, search all attributes in all layers for any occurrence of one or more