Hey... I am newbie to Javascript. I wanted to replace the dot operator and some escape characters using regular expressions. Could anyone help me out in this?
Hey... I am newbie to Javascript. I wanted to replace the dot operator and some escape characters using regular expressions. Could anyone help me out in this?
So, you are talking about a string, in which case you probably mean the dot character, not the dot operator. Anyway, in JavaScript syntax the dot is not an operator...
Give us an example of a string. How it looks before, and how do you want it to look like after the RegExp replacements.
I am talking about strings with special characters
Eg..
/* Obtain, parse and clean the domain name from the textbox */
function getDomainToLookupValue() {
var domain = getDomainTextBox().value;
var output = trim(domain).toLowerCase();
Bookmarks