I need to get the port from url, I use the following which works
https://regex101.com/r/yoBODY/1
(?:([^@]*)@)?(.\[.+\]|([^:]+))(?:[:](\d+))?
As im quite new to regex, Am I missing something?
This is the inputs and from it I need to get the port
test:222
https://aaa.com:333
https://www.aaa.com:333
aaa.bbb.cccc:8000
im getting some URI/URL with port
if its OK please let me know