嗨,我有以下字符串作为服务器的输出。
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6InNjb3BlOmNsaWVudDppbmNvbWluZz9jbGllbnROYW1lPWplbm55IHNjb3BlOmNsaWVudDpvdXRnb2luZz9hcHBTaWQ9QVA2YmI2NDI1ZmE3MTU3MzdmYjFmYTllMjI1MDk4NjdlMSZhcHBQYXJhbXM9JmNsaWVudE5hbWU9amVubnkiLCJpc3MiOiJBQzI4YmNjYzc0NzQ4ZDAzNzRmNzg5ZjgyN2U0OGMzODNjIiwiZXhwIjoxMzYxNDM0ODY1fQ.q17gvt8ItDmximK2rpS5bHwtsfbk3l-suSx2jXju3Wk
<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<!-- End Of Analytics Code -->
我想跳过字符串的 html 部分,即我只想要
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6InNjb3BlOmNsaWVudDppbmNvbWluZz9jbGllbnROYW1lPWplbm55IHNjb3BlOmNsaWVudDpvdXRnb2luZz9hcHBTaWQ9QVA2YmI2NDI1ZmE3MTU3MzdmYjFmYTllMjI1MDk4NjdlMSZhcHBQYXJhbXM9JmNsaWVudE5hbWU9amVubnkiLCJpc3MiOiJBQzI4YmNjYzc0NzQ4ZDAzNzRmNzg5ZjgyN2U0OGMzODNjIiwiZXhwIjoxMzYxNDM0ODY1fQ.q17gvt8ItDmximK2rpS5bHwtsfbk3l-suSx2jXju3Wk
我想从字符串中删除以下内容
<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
<!-- End Of Analytics Code -->
我应该使用什么方法来检测<!--
和跳过字符串的其余部分?