Python如何正则提取第三层花括号()里的内容?
举例:我想把如下字符串中第三层花括号的内容提取出来{supportedBandCombination-r10{{{bandEUTRA-r103,bandParameter...
举例:我想把如下字符串中第三层花括号的内容提取出来
{
supportedBandCombination-r10
{
{
{
bandEUTRA-r10 3,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
{
{
bandEUTRA-r10 1,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
{
{
bandEUTRA-r10 40,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
{
{
bandEUTRA-r10 41,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
}
}
}
Python如何正则提取第三层花括号里的内容? 展开
{
supportedBandCombination-r10
{
{
{
bandEUTRA-r10 3,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
{
{
bandEUTRA-r10 1,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
{
{
bandEUTRA-r10 40,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
{
{
bandEUTRA-r10 41,
bandParametersUL-r10
{
{
ca-BandwidthClassUL-r10 a
}
},
bandParametersDL-r10
{
{
ca-BandwidthClassDL-r10 a,
supportedMIMO-CapabilityDL-r10 twoLayers
}
}
}
},
}
}
}
Python如何正则提取第三层花括号里的内容? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询