##Find everything enclosed in tags <primaryAddress>[\s\S]*?<\/primaryAddress> Use i Modifier for finding across lines!