abcvkf Only delete the front * sign, and keep the middle and back ones. How should the regular expressions be matched?
曾经蜡笔没有小新2017-05-19 10:29:04
Okay, it is always transcoded. Look at the picture. As long as the replace is not global, it will be fine.
'****abc*vkf****'.replace(/[\*]+/, '')
我想大声告诉你2017-05-19 10:29:04
Is this so? Use zero-width assertion http://www.cnblogs.com/deerch...
var s = '****abc*vkf****',
res = s.replace(/\**(?=abc)/g,'');