![](/img/trans.png)
[英]How to keep values and remove the others (attributes html string) on a regular expression?
[英]iOS Use regular expression to remove/replace substring in HTML string
我想使用正则表达式来找到给定的字体系列,并用我的字体替换该字体系列; 在我的字符串中并将其从中删除,因此返回值是未应用新字体系列的原始字符串。
例如
<span style="font-family: TimesNewRoman; font-size: 12"><p>My text<br /><br />
<span style="font-family: 'Georgia','serif'; color: #1a1a1a;">Description is here</span> Detail description</strong></p>
</span>
在这里,我想用TimesNewRoman编辑'Georgia'注意:' Georgia
'将是dynamic
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.