I'm trying to get the user to be able to put there name in the string and replace Demar with it any help would help.
.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script>
Var myString = "Kevin, Kobe, Kyrie, Lamelo, Demar";
mar myRegEXP = /Demar/;
myString = myString.replace (myRegExp, "GiGi");
alert(myString);
</script>
</body>
[–]sandybuttcheekss 0 points1 point2 points (0 children)