Re: script to test a file.

2003-10-29 Thread Brian Gerard
And the clouds parted, and Wiggins d Anconia said... > > > > 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

Re: script to test a file.

2003-10-29 Thread Robert Citek
At 11:43 AM 10/29/2003 -0600, Andrew Gaffney wrote: 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 thi

Re: script to test a file.

2003-10-29 Thread Jerry Rocteur
On Wednesday, Oct 29, 2003, at 19:43 Europe/Brussels, Wiggins d Anconia wrote: 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

Re: script to test a file.

2003-10-29 Thread Wiggins d Anconia
> 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+\

Re: script to test a file.

2003-10-29 Thread Andrew Gaffney
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 --