for example: "aa A1:B2 v2VR b3"
want to get: "aa A1:B2 v2VR b3"
for example: "aa A1:B2 v2VR b3"
want to get: "aa A1:B2 v2VR b3"
var str = 'aa A1: B2 v2 : b3';
var reg = /(\s*:\s*)+/gi;
var newstr = str.replace(reg, ':');
console.log(newstr);
means that users can post links and pictures, but cannot send html and css styles! the current way of writing is: var result=str.replace( (< ?)([a-z]+)( s[ w W]*?)?(>) ig,function(s0,s1,s2,s3,s4) { if (! ^(img|a)$ .test(s2)) return &q...
var key = ? (key) var str1 = `{{${key} ? ${key}: nihao }}` var str2 = `{{ ${key} && nihao }}` var str3 = `{{ nihao || ${key} }}` reg.test(str1) && reg.test(str2) && reg.test(str3) === true reg =? ...
for example, there is a paragraph of markdown . -sharp-sharp mysql >mysql MySQL Command Line Client mysql; ; ![image](http: localhost:3000 images markdown image-1551081068552-11.png) [http: localhost:8081 markdown 3](http: localhost:8081 mar...