js正则 replace and RegExp
2021-01-25 00:00:00 by 【6yang】,
1667
visits,
收藏 |
返回
var proname = 'proname '
'<link rel="stylesheet" href="/asset/reward/common/base.css?v=fdsafdsa432432">432423'.replace(
new RegExp(
'(<link[^<>]*href="/asset/' +
proname +
'/common/base.css)(\\?v=)(\\w+)">',
'gi'
),
``
)
share