postman js 正則表達式取單引號雙引號中間的字符串

例如字符串爲'helloworld你好',想要獲取到的內容是helloworld你好 var str = 'helloworld你好'; re = /\'(.*?)\'/; str_new = str.replace(re,"$1"); console.log(str_new); 運行後結果如下:
相關文章
相關標籤/搜索