Create a regular expression using data extracted from an XML file
问题 I'm parsing an xml file, that has nodes with text like this: <?xml version="1.0" encoding="iso-8859-1"?> <country> <name> France </name> <city> Paris </city> <region> <name> Nord-Pas De Calais </name> <population> 3996 </population> <city> Lille </city> </region> <region> <name> Valle du Rhone </name> <city> Lyon </city> <city> Valence </city> </region> </country> What I want to get is values like this: country -> name.city.region* region -> name.(population|epsilon).city* name -> epsilon