I need check a field where user insert URLs. The rules are:

* No spaces;
* Separated by comma;
* Each URL have to starts with http:// or https://

Valid examples of input text:

* "<http://whatever.com,https://anything.edu,http://anotherurl.br>"
* "<http://thisisavalidurl.com>"
* "<https://aurl.fr>"

Some invalid examples:

* "<https://validurl.com,badexample.com>"
* "anotherbadone.com"
* "nomoreideas.com,badurl.com"
* "<https://goodone.com>, <http://goodbutspacesnotwelcomed.com>"

This is my regex, but is not working properly:

```
/(^([\S]https?:\/\/)\w+(?:\.\w+)*\.\w{2,})$*/i

```