Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Serge Noiraud <Serge.Noiraud@fr...> - 2012-06-29 17:05:04
|
Le 29/06/2012 13:02, doug a écrit : > On 27/06/12 17:49, Serge Noiraud wrote: >> Le 27/06/2012 12:56, doug a écrit : >>> On 26/06/12 18:49, Nick Hall wrote: >>>> On 26/06/12 18:16, Benny Malengier wrote: >>>>> 2012/6/26 doug <dougrb@... <mailto:dougrb@...>> >>>>> >>>>> On 26/06/12 16:49, Nick Hall wrote: >>>>>> On 26/06/12 16:27, Benny Malengier wrote: >>>>>>> Yes, because there are other ways to construct a >>>>> regular expression >>>>>>> that matches a space at the end. Finding the error >>>>> due to a trailing >>>>>>> space too much is on the other hand very difficult >>>>> to see. >>>>>> I'm talking about matching a space in the middle, >>>>> not the end. >>>>>> Suppose you want to match the string 'abc ' anywhere >>>>> in the line.  Then >>>>>> a regexp with a trailing space is useful.  Why >>>>> remove it?  You might not >>>>>> want to match 'abc'. >>>>>> >>>>>> Nick. >>>>> Would you mind giving an example or two? I'm afraid I >>>>> don't >>>>> understand. >>>>> >>>>> >>>>> Doug, Nick means the regex search in eg the Gramps >>>>> filtersidebar. There users see the full regex, so a >>>>> trailing whitespace in error should be noticed. >>>> Yes. I was thinking more of the filters. >>>> >>>> If this is just for the Place Completion tool, then I am not >>>> so concerned. >> NO, it's also for names. >> If I have : >> lelièvre >> leduc >> lachaine >> lechene >> le lievre >> le duc >> le chene >> la chaine >> >> If I want only the names begining by 'le' or 'la' with a space, >> my regexp is : >> L[EA]<space> >> In this case, I need the trailing space. > Wouldn't L[EA]\s do just as well and distinguish a > deliberate from an accidental trailing space? In my cases, it can't be an accidental case. These kind of searchs are always in the middle. As I already say yesterday, the trailing space must be removed in records. Yes I agree , it works for all kind of space, tab, carriage return, line feed. But I think it's not natural for a final user which doesn't know regexp. If we do that, we should show at the final user the meta characters he can use in the regexp. In the filters, under the cancel and search buttons, we have some place to show that. it can be a button near the "use regular expressions" which show some help, examples, ... > > Doug > Serge |