Javascript reference to regex match?

Yes. Use regex backreferences (Notice the parentheses I added to the beginning and end of the regular expression, to make the entire thing be put in a match group. ).

Yes. Use regex backreferences. (Notice the parentheses I added to the beginning and end of the regular expression, to make the entire thing be put in a match group.) var msg = "Go to google.com and youtube.

Com"; var regex = /(-a-zA-Z0-9@:%_\+. ~#? &\/\/={2,256}\.

A-z{2,4}\b(\/-a-zA-Z0-9@:%_\+. ~#? &\/\/=*)?

)/gi; msg. Replace(regex, "$1") // Where is a reference to the current matched url.

– Hans Engel Mar 23 at 14:35 +1 Your solution works. Result in firebug: "Go to google.com and youtube. Com" – morja Mar 23 at 14:41 2 Perhaps because you didn't escape the forward slashes properly?

Fixed it for you and counter-voted the -1 – Bart Kiers Mar 23 at 14:43 Ah, okay. Thanks for the fix. – Hans Engel Mar 23 at 21:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send