Menu

Grep

Krzysztof Kamil Jacewicz

[ATUlib]: Grep

This procedure will filter the text content in a specified TStringList object by matching against a specified substring, in a similar way that UNIX grep command works.

Function header

Procedure Grep(const SL: TStringList; const Agrep: string);

Parameters

  • SL - indicates a TStringList object that holds text content to be filtered
  • Agrep - indicates the filter to apply. Only lines of the TStringList object that contain substring specified by this parameter will be left, and other lines will be deleted.

Related

Wiki: ATUlib

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.