How do you use the matched variables in the pattern in the replacement string? var regexp = new RegExp('needle', 'ig'); str.replace(regexp, '<span class="marked ...
確定! 回上一頁