Simple text data parser/analyzer in Delphi

Implement using Delphi 2010 (or compatible) a function:

Procedure AnalyzeList(var input : TStringList; var output : TStringList);

Input TStringList contains text data such as the attached sample file. Most (but not all) lines of the input list contain a registry key. For example, one line of input data could be:

Foobar(HKEY_CLASSES_ROOT\[url removed, login to view]\shell\open) 1 0.000520 0.000520 0.000520 0.000520

From this data, the AnalyzeList function must extract all the registry keys (e.g. "HKEY_CLASSES_ROOT\[url removed, login to view]\shell\open") and the second numeric value (e.g. 0.000520) and list the registry keys to the output list sorted by the numeric value starting with the biggest values.

For example, lets say the input is:

Foobardfsds (HKEY_CLASSES_ROOT\[url removed, login to view]\shell\open) 1 0.000520 fds 0.000520 0.000520 0.000520


Foobar(HKEY_CLASSES_ROOT\*\) 112 143.000520 0.000520 0.000520 0.000520 432432

gdfd (HKEY_CLASSES_ROOT\[url removed, login to view]\shell\) 2 0.008520 0.000520 0.000520 0.000520


Foobar(HKEY_CLASSES_ROOT\[url removed, login to view]\) 43 1.000520 43424 0.000520 0.000520 0.000520

In this case the output would be:

143.000520 HKEY_CLASSES_ROOT\*\

001.000520 HKEY_CLASSES_ROOT\[url removed, login to view]\

000.008520 HKEY_CLASSES_ROOT\[url removed, login to view]\shell\

000.000520 HKEY_CLASSES_ROOT\[url removed, login to view]\shell\open

Only make a bid if you can do this right now. This is a simple job and should not take more than 30 minutes to code.

Evner: Delphi

Se mere: sorted data, one key data, sample data input, list sorted, simple analyzer, function delphi, delphi open file, attached m3u, delphi sample code analyzer, delphi registry, output analyzer, code data analyzer, parser code, extract data text file perl, key code delphi, text data, text analyzer, simple text job, perl extract data text file, script extract data text file

Om arbejdsgiveren:
( 591 bedømmelser ) Turku, Thailand

Projekt ID: #4444629