- C/C++ code
tmp.replace(QRegExp("(<script[^>]*?>.*?</script>)"),"");tmp.replace(QRegExp("(<style[^>]*?>.*?</style>)"),"");
但是发现没有效果。。。
这个该怎么写正则?
------解决方案--------------------
tmp.replace(QRegExp("(<script[^>]*?>.*?</script>)"),"");tmp.replace(QRegExp("(<style[^>]*?>.*?</style>)"),"");