Change Content - Javascript

Change html element content using pure javascript author(s): Deepu Mohan Puthrote (WarFox)

JavaScript

let matches = /(hello \S+)/.exec('This is a hello world!');
console.log(matches[1]);