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
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
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
> 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+\
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
--