Rick Bragg wrote:
Hi,

I want to write a script that will test the contents of a file.

The file being tested will pass only if it contains nothing more than an ip address on one line. Does anyone have a sample of a simple regex to accomplish this?

/\d+\.\d+\.\d+\.\d+\n?/s


--
Andrew Gaffney


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to