What does /.*=/ mean in the following jquery?
var id=this.href.replace(/.*=/,'');
this.id='delete_link_'+id;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s a regular expression that will select all characters before and including an equal sign.
The ‘.’ means any character other than a newline.
The ‘*’ means the character before it can appear any number of times.
The ‘=’ is the regular equals sign.
So any character (‘.’) any number of times (‘*’) followed by an equals sign (‘=’).