首页 > string a = "1y1'a'11'b'dd'c')";提取被单引号括住的字符串a,b,c放到数组

string a = "1y1'a'11'b'dd'c')";提取被单引号括住的字符串a,b,c放到数组

C#或JAVA语言都可以

不确定的字符窜中分别抽取被单引号括住的字符串,分别添加到数组


//javascript
s.split('\'').filter(function(item, index, array) { 
    return index % 2 === 1
})
【热门文章】
【热门文章】