I have a text and a script
var x = "This is an example url http://www.longurl.com/?a=example@gmail.com&x=y1 and this must me a example url";
function getMatch(str) {
var urlRegex = '(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?';
var reg = new RegExp(urlRegex, 'ig');
return str.match(reg);
}
console.log(getMatch(x));
The expected outcome must be
[ http://www.longurl.com/?a=example@gmail.com&x=y1 ]
but the below getMatch is giving me incorrectly (skipping &x=y1)
http://www.longurl.com/?a=example@gmail.com
How do I modify the function to return a complete URL
NOTE: This happens only when the email arguments are passed after it
finds @ character, the function behaves weird.
modafinil for sale – a modafinil prescription provigil a narcotic
buy accutane cream – order cheap accutane accutane price south africa
buy amoxicilin noscript canada – amoxil USA amoxicillin for humans for sale
buy vardenafil usa online – how long does vardenafil work vardenafil online india
ivermectin 5ml – ivermectin tablets order buy ivermectin pills
canadian pharmacy store – cialis usa prescription canadian price for cialis
stromectol cream – stromecpl.com stromectol 12mg
price for generic accutane – buy cheap accutane canada online pharmacy accutane
lyrica from mexico – walmart pharmacy canadian pharmacy price checker
amoxicilin usa – amoxicillin buy amoxicilina 500 mg online
otc female viagra – super force viagra cost of generic viagra in india
tadalafil 20 mg medication – cialis order online india buy cialis 60 mg online
ivermectin medicine – buy stromectol 2mg stromectol pill price
prednisone prescriptions – prednisone without a prescription prednisone 216
provigil dosage – provigil vs nuvigil order provigil
order zithromax online canada – azithromycin dosage order zithromax 100mg
lasix 80 – lasix 40 mg iv lasix 20mg tablet price
purchase clomiphene – where can i buy clomid buy clomid online without prescription
how can i get viagra prescription – best over the counter viagra viagra online canada mastercard
us pharmacy – cialis online cheap cheap tadalafil no prescription
buy ivermectin tablets – ivermectin 50ml ivermectin 50mg/ml
online casino games – empire city casino online online casino real money us
gnc ed pills – what is the main cause of erectile dysfunction pills for ed
prednisone 40 mg rx – buying prednisone online generic prednisone pills
over the counter viagra pills – viagra online mexico viagra 200mg online
cialis 10mg – Discounted cialis online tadalafil 2.5 mg tablet
ivermectin 3 mg tablet dosage – buy oral ivermectin stromectol buy
free ed pills – best pills for ed hims ed pills
albuterol sulfate inhaler – cost of ventolin in usa ventolin 100 mcg
buy cytotec pills – misoprostol buy cytotec 200 mg online
doxycycline singapore – where can i purchase doxycycline 40mg doxycycline online
buy generic neurontin – site compare synthroid prices
cheap viagra australia – female viagra australia
cialis 100mg tablets – cost of daily cialis cialis 20mg price uk
generic vardenafil 100mg – buy cialis viagra vardenafil what is the generic for vardenafil
cost 50mg prednisone tablets – prednisone in canada prednisone 5084
accutane pills buy online – buy accutane usa where can i get accutane online
amoxicillin online purchase – amoxicillin no prescription amoxicillin online
methylprednisolone generic prices – buy methylprednisolone online uk lyrica price in india
edit my paper – order custom essay paper assistance
viagra online price usa – Pfizer viagra 50 mg online viagra generic canada
can you buy stromectol over the counter – buy ivermectin ivermectin 2mg online
ventolin price australia – site generic ventolin
cytotec tablet – where can you buy cytotec over the counter buy cytotec online uk
doxycycline 100mg pills – how much is doxycycline in south africa prednisolone 25mg australia
ivermectin india – ivermectin uk ivermectin 1 cream generic
buy ivermectin for humans – ivermectin 9mg ivermectin pills human
buy generic sildenafil – buy generic sildenafil purchase sildenafil
tadalafil cost – tadalafil professional tadalafil online
accutane 2.5 mg – accutane generic accutane price online pharmacy
help with papers – buy an essay online cheap buy essay now
buy ivermectin for humans australia – stromectol buy canada where to buy ivermectin for humans
expired amoxicillin capsules
sildenafil 100mg prescription – rx pharmacy online viagra medicine tadalafil tablets
propecia dose
generic vardenafil prices – vardenafil canada cure for ed
buy hydroxychloroquine – predisone with no presciption prednisone for gout
cenforce 120 mg online – vidalista tadalafil 60 malegra 100
prednisone 20mg capsule
orlistat 60 – orlistat medication cost xenical
cialis 5 mg online
ivermectin 24 mg – stromectol tablet price is ivermectin a prescription drug
online pharmacy cialis 20 mg
canadian pharmacy sildenafil – canadian viagra and healthcare female viagra online purchase in india
average cost of cialis – tadalafil tablets 20 mg canadian pharmacy viagra 50 mg
zithromax medicine
deltasone without rx script online – prednisone 20mg online order prednisone 10mg
buy tadalafil in india – cialis 20mg cost cialis 20 mg
can you buy ventolin over the counter in the usa
ivermectin 0.5% brand name – stromectol cost in usa ivermectin medication
20 mg generic viagra – buy viagra kentucky 1 viagra pill
buying sildenafil in mexico – viagra overnight shipping usa cheapest sildenafil tablets
online pharmacy nz cialis – cialis cost tadalafil over the counter uk
ivermectin cream uk – generic ivermectin online stromectol tablets for sale
tadalafil and dapoxetine dosage
my friend essay writing – essaywrfm help writing research paper
where to buy cialis online
lowest price for generic viagra
prednisone 20mg dosage – prednisone 60 mg order prednisone 40mg
can i buy accutane online – buy accutane in mexico accutane 40mg
ivermectin 15 mg – ivermectin 12mg for people ivermectin 50mg/ml
jackpot party casino – online gambling money sports gambling casino online real money
order hydroxychloroquine 200mg – buy cenforce 100mg sale buy valtrex 1000mg sale
sildalis us – fluconazole 200mg without prescription buy metformin 1000mg for sale
fluconazole tinea versicolor reviews
ampicillin 250mg tablet – buy flagyl 400mg online hydroxychloroquine 200mg tablet
cost plaquenil 200mg – hydroxychloroquine price plaquenil 400mg tablet
albuterol sulfate hfa reviews
what is tadalafil tadalafil dosage
tadalafil online cialis without prescription
cialis without prescription generic cialis online fast shipping
tadalafil side effects what is tadalafil
tadalafil without a doctor prescription cheap generic cialis for sale
i need a direct payday loan lender, i need consolidation loan. i need car loan for bad credit need loan i need a loan today i need a loan desperately, cash advance loans direct lender, cash advances, cash advances, money 3 payday loans. Commerce study of those money management, financial institution .
http://ivermectinetc.com/ ivermectin uk 3mg 6mg 12mg
stromectol 3 mg tablet https://ivermectinetc.com/
buy ivermectin in canada
order ivermectin from canada stromectol 3 mg tablets ivermectin generic