JSFiddle - React, Tailwind, and code Playground

by tuga

JavaScript

var string = "hello world";

var myregexp = /\w/g;
var match = myregexp.exec(string);
while (match != null) {
	for (var i = 0; i < match.length; i++) {
		alert(match[i]);
	}
}