regex query - 25/02/09 05:54 AM
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
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.
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) {
A correction and explanation of the correction would be appreciated.