Page 1 of 1 1
Topic Options
#35765 - 2003-01-28 05:09 PM Readline and finding sting in txt files
cellnet Offline
Starting to like KiXtart

Registered: 2002-02-26
Posts: 115
Loc: Sweden
Hello

I would like to find the "q" numbers in hfnetchk generated txt file

code:
 
* WINDOWS 2000 SP3

Patch NOT Found MS02-042 326886
Patch NOT Found MS02-045 326830

The information im looking for, are after the "tab" (numeric value)

Finding specific letters, for instance a "Q" before the numbers helped my in the past, but now hfnetchk seems to skip the Q bit

Running kix 4.0.2.0
Win2k Proffesional

\erik

Top
#35766 - 2003-01-28 05:14 PM Re: Readline and finding sting in txt files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Microsoft is no longer using 'Q' numbers.
Use SPLIT('Patch NOT Found MS02-042 326886',' '). The last array element will contain the knowledgebase number.
_________________________
There are two types of vessels, submarines and targets.

Top
#35767 - 2003-01-28 05:23 PM Re: Readline and finding sting in txt files
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
or shortly just:
SPLIT('Patch NOT Found MS02-042 326886')

so the usage would be:
code:
$text='Patch NOT Found MS02-042 326886'
$text=split($text)
$articleNumber=$text[ubound($text)]

? $articleNumber

_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1013 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org