I'm trying to get an IP address that is posted as part of a message in a channel. The address will be in $3- but I don't know exactly where.
I thought the following would work, but testing keeps bringing up an insufficient parameters message.
Here's the line that is being referred to
Code:
if ($regex(ip,$3-,\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) > 0) {
I admit I'm trying to learn about regex, but I'm unable to determine what is missing.

A correction and explanation of the correction would be appreciated.