2010/3/29 Benny Malengier <benny.malengier@gmail.com>
The name regex applies the regex to every field with a part of the name, and you retrieve the results where once a match was found.

So you cannot match on family name and given name at the same time, the regex must return or true on the family name or on the given name. You want a regex on the field you see in the view instead, which is not present.

You can see this with the regex

(Test|.*Otto.*)

which will you all Test surnames and all people with an Otto in the given name (or in surname)

So you need custom filter, where you combine two other filters and require both to be True.

Benn
 

Benny

2010/3/29 Helge@GRAMPS <Helge.Privat@kabelmail.de>


Hi all,

I try to use a regular filter for the People View but I didn't get the
expected results.
Here is the example:
-> People (surname, given name)
  Foo, Otto
  Test, Max
  Test, Max Paul Otto
  Test, Otto
  Test, Paul Otto

Could some one help me please: What is the regular expression to select all
people having surname=Test and as part of the given name 'Otto' (this should
be the last 3 people of the list above)?
I tried this expression
       Test[\w]*Otto[\w]*
But it's wrong...

(I know, that I could do the job by user filters, but I want to learn more
about regular expressions.)
Many thanks
-Helge

--
View this message in context: http://old.nabble.com/Regular-Expression-in-Filterbar-for-People-View-tp28071583p28071583.html
Sent from the GRAMPS - User mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gramps-users mailing list
Gramps-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gramps-users