I am using a normal jquery validation to validate user input to be a valid URL
so validation for this input is true and a user can input a valid URL
http://www.example.com/investments/stocks-shares/?source=XYZ
However i want the user to be able to enter a URL something like
http://www.example.com/investments/stocks-shares/?source={user-code}
Now here {user-code}
makes the URL invalid and the user cannot enter this URL. So i need a REGEX which can validate the URL like this
http://www.example.com/investments/stocks-shares/?source={user-code}
{user-code}
can occur anywhere in the url. I am new to REGEX so any help is appreciated. Thanks in advance.