get second match regex code example
Example: get second match regex
"https://regexrocks.com/my/socks/off".match(/(.*\.com)(.*)/)[2]; ///my/socks/off
"https://regexrocks.com/my/socks/off".match(/(.*\.com)(.*)/)[2]; ///my/socks/off