JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test"></div>
JavaScript
var test = "/create #channel 'name' 'description of the channel' #field1 #field2";
var matches = test.match(/('[^']+'|[^\s']+)/g);
for(var i=0;i<matches.length;i++) {
if(matches[i][0] == "'") matches[i] = matches[i].substr(1,matches[i].length-2);
document.getElementById("test").innerHTML += matches[i]+"<br>";
}