字符串组合:
str_search = adfa odf 'aso'
str_search = do o sfo o'sfsdf'
str_search = sdfosd'sf sd'
到目前为止我所做的:
if( /\s*\S*["|']\s*\S*["|']$/.test(str_search) ){
alert('at the 2nd quote');
//replace the string enclosed in quotes with !string!
}//if
第一个块的字符串组合必须在第二个块的条件内。因此 ff不应在第二个块中输入条件
str_search = adfa odf 'aso
str_search = do o sfo osfsdf'
str_search = sdfosd'sf sd's