I need to check a URL string, and if the URL does not contain “www.”, insert it in the correct position.
For example, the strings on the left should be transformed as indicated:
www.myweb.com => www.myweb.com
myweb.com => www.myweb.com
http://myweb.com => http://www.myweb.com or www.myweb.com
http://www.myweb.com => http://www.myweb.com or www.myweb.com
try as: