🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: best.general
Article #1659

Re: Examining strings in files

#1659
From: CyberPark
Date: Mon, 06 Nov 1995 00:00
40 lines
2439 bytes
OK, sorry for the lack of clarity.  I was trying to be general so I could 
elarn it and use it for the future.  Here's what I am trying to do.

I have a file with multiple records in it.  I need to look for some text 
FOLLOWING a tag of some kind, let's say the tag PRIV:   I want to pull out 
the next "field" following the PRIV: tag.  For example:


record_1 text_1 text_string2 blah blah PRIV: 132.634.757.245 blah blah blah
record_2 text_1 text_string2 text_string3 blah blah blah blah blah
record_3 text_1 text_string2 text_string3 blah blah blah blah blah
record_4 text_1 text_string2 blah blah PRIV: 274.34.71.25 blah blah blah
record_5 text_1 text_string2 blah blah blah blah blah blah blah blah


I want to read in a file and see if it finds the stuff following the PRIV: 
 In case you haven't guessed, the number following the PRIV: is an IP 
address.  Hint: think of private chat rooms...

Thanks for any more ideas and suggestions!

By the way, on a completely different project: I need a topnotch 
perl/database programmer for several projects I'm working on.  Please let 
me know a self assessment of cgi/perl/database knowledge and experience, 
cost structure and availability.  I need to begin a major project, soon.

Thanks again!

Brent

---------------------------------------------------------
Brent N. Hunter
bhunter@cyberpark.com
http://www.cyberpark.com

"In theory, there is no difference between theory and practice, but in 
practice, there is."   - Author unknown

"If you can't say anything nice, come sit next to me." -Alice Roosevelt 
Longworth
Technical Details
Message-ID: <47kdad$ap7@shellx.best.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <47jf89$k7c@shellx.best.com> <x7n3aai5hh.fsf@glx.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 161bbf,4d51e96cce84d80f,start
X-Google-Attributes: gid161bbf,public
X-Google-Thread: f9f6d,4d51e96cce84d80f,start
X-Google-Attributes: gidf9f6d,public
X-Google-Thread: 11488e,4d51e96cce84d80f,start
X-Google-Attributes: gid11488e,public
X-Google-Thread: fd796,81754fefbd7cf85c
X-Google-Attributes: gidfd796,public
From: CyberPark <bhunter@cyberpark.com>
Subject: Re: Examining strings in files
Date: 1995/11/06
Message-ID: <47kdad$ap7@shellx.best.com>
X-Deja-AN: 118654179
references: <47jf89$k7c@shellx.best.com> <x7n3aai5hh.fsf@glx.com>
content-type: text/plain; charset=us-ascii
organization: CyberPark
mime-version: 1.0
newsgroups: best.general,best.schaft,best.www,comp.infosystems.www.authoring.cgi
x-mailer: Mozilla 1.2N (Windows; I; 32bit)