<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script>
function check()
{
var elem = document.getElementById('text');
var usrInp = elem.value;
var regExp = /\$/;