Hi,
I am using match function of string to find if a character is there in a
string. The function Match is working fine with all the other characters
except when the searching character is "+".
Here is the piece of code i am using
var line1 = "Hell+O";
if(line1.match( "+"))
{
alert("The character is found");
}
In the above code it should alert the statement "The character is found".
Please help me out.
Regards,
Venkat
I am using match function of string to find if a character is there in a
string. The function Match is working fine with all the other characters
except when the searching character is "+".
Here is the piece of code i am using
var line1 = "Hell+O";
if(line1.match( "+"))
{
alert("The character is found");
}
In the above code it should alert the statement "The character is found".
Please help me out.
Regards,
Venkat
Comment