I need a small java task done
Write a statement that creates a RegExp object that remembers the title and last name, but does not remember the first name. Using the RegExp object's exec() method, assign the result variable with the remembered title and last name of the string userName.
var userName = "Dr. Greg House"; // Code will also be tested with "Mr. Howard Wolowitz"
/* Your solution goes here */
[url removed, login to view](result + " " + result);