Jump to content

understanding some symbols in replace function


hisoka

Recommended Posts

var x = " hello w3schools how are you this is the site url http://w3schools.invisionzone.com"

var y = x.replace (<\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b>/g , '&lt;$1$2&gt;$3&lt;/$1&gt;')


 

 

could you please tell what do these symbols mean &lt;$1$2&gt;$3&lt;/$1&gt;   ?

 

Edited by hisoka
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...