I need a function that does the following
- given a String, determine if that string contains a VALID URL (not that it exists, just meets the criteria)
- it must NOT be enclosed in ( ) or Quotes (single or double)
- If such a string is found it needs to be "replaced" with
ie. two square brackets followed by the URL enclosed in ()
Extra sugar would be... if the URL does not start with HTTP:// or HTTPS:// then prepend HTTP://
Note for this, I don't need to worry about other URL types.... assumption will be HTTP only
s="my favorite website is www.rdsisemore.com" s=FixTheURL(s)
my favorite webiste is (http://www.rdsisemore.com)"
EDIT : actually.... it would need to become this
my favorite webiste is [http://www.rdsisemore.com](http://www.rdsisemore.com)"