如何剥离HTML以及{} [英] How do I strip HTML and also {}
本文介绍了如何剥离HTML以及{}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello Code Project,
当前我试图使用
这个正则表达式删除一些html标签:< [^> ] *(> | $)|& nbsp; |& zwnj; |& raquo; |& laquo;
但是我仍然最终标志为{font-size:9pt; font-family:arial; }
如何剥离{}以及?
最佳问候
Hello Code Project,
currecntly I am trying to strip some html tag using
this regex: <[^>]*(>|$)| |‌|»|«
However I still end up with signs as { font-size:9pt; font-family: arial; }
How can I strip { } aswell?
best regards
推荐答案
)|& nbsp; |& zwnj; |& nquo; |& laquo;
但我仍然最终标志为{font-size:9pt; font-family:arial; }
我怎样才能剥离{}以及?
最好的问候
)| |‌|»|«
However I still end up with signs as { font-size:9pt; font-family: arial; }
How can I strip { } aswell?
best regards
>
http://stackoverflow.com/questions/8307039/javascript-remove-braces [ ^ ]
http://stackoverflow.com/questions / 10792587 /想从一个字符串中移除卷曲的支撑物 [ ^ ]
这将帮助您了解您的正则表达式应该如何是。干杯:)
http://stackoverflow.com/questions/8307039/javascript-remove-braces[^]
http://stackoverflow.com/questions/10792587/want-to-remove-curly-bracers-from-a-string[^]
That will help you to understand how your regex should be. Cheers :)
这篇关于如何剥离HTML以及{}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文