Learn how to split a string with both an IP address and a port number in JavaScript using regular expressions. Most scripts out there don’t handle ports.
https://blog.elmah.io/split-ip-and-port-in-javascript-with-regular-expressions/
#javascript #regex #regexp