| Код | StringReplace(где искать, старое значение, новое значение, [rfReplaceAll, rfIgnoreCase]);
rfReplaceAll - заменять по всему тексту (первый параметр) rfIgnoreCase - не учитывать регистр символов
| Добавлено @ 08:28 Цитата из справки
| Цитата | TReplaceFlags indicates how to perform a search-and-replace operation
Unit
SysUtils
Delphi syntax:
type TReplaceFlags = set of (rfReplaceAll, rfIgnoreCase);
C++ syntax:
enum SysUtils__93 { rfReplaceAll, rfIgnoreCase };
typedef Set<SysUtils__93, rfReplaceAll, rfIgnoreCase> TReplaceFlags;
Description
TReplaceFlags is a set of flags that govern how to locate and replace a substring within a string. This set can contain the following values:
Value Meaning
rfReplaceAll Replace all occurrences. If this flag is not present, only the first occurrence of the target substring is replaced. rfIgnoreCase Match occurrences of the substring case-insensitively. If this flag is not present, only case-sensitive matches are considered.
| |