Check out example codes for "dart regex for url". It will help you in understanding the concepts better.

Code Example 1

bool _validURL = Uri.parse(URL).isAbsolute;

Learn ReactJs, React Native from akashmittal.com