Just to share with you all of my findings and feel free to comment as I'm no expert in this regex so I just use whichever I feel can solve my problem.
After spending hours of research to use regex and even Data::Validate::URI, finally I have encounter this website list with lots of regex to check if url is valid or not. (https://mathiasbynens.be/demo/url-regex)
I have already picked one that best suits my needs.
Feel free to comment if there are any cons of using such regex.
In reply to Regex check Valid URL by hankcoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |