Changes

From Gramps

Addon:Place completion tool

16 bytes removed, 00:20, 22 July 2015
Advanced usage
{{man note|Regex Help|For those new to Python and Regex please review the HOWTO here:<br /> http://docs.python.org/dev/howto/regex.html}}
#<nowiki>"City [,|.] State" is parsed by : <code>r'\s*(?P<'+city_translated +r'>.+?)\s*[.,]\s*(?P<'+state_translated +r'>.+?)\s*$'</nowikicode>#<nowiki>"City [,|.] Country" is parsed by : <code>r'\s*(?P<'+city_translated +r'>.+?)\s*[.,]\s*(?P<'+country_translated +r'>.+?)\s*$'</nowikicode>#<nowiki>"City (Country)" is parsed by : <code>r'\s*(?P<'+city_translated +r'>.*?)\s*\(\s*(?P<'+country_translated +r'>[^\)]+)\s*\)\s*$'</nowikicode>#<nowiki>"City" is parsed by : <code>r'\s*(?P<'+city_translated +r'>.*?)\s*$'</nowikicode>
Here the variables used are:

Navigation menu