fix reorder regex for config patterns