Changes between Version 2 and Version 3 of TextReplaceExample
- Timestamp:
- 04/17/07 08:05:42 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TextReplaceExample
v2 v3 15 15 16 16 // replace "eat" with "chew" 17 char[] replaced = Text.substitute (source, "eat", "chew"); 18 Cout(replaced).newline; 19 20 // incrementally replace "eat" with "chew", sans heap activity 17 21 foreach (element; Text.patterns (source, "eat", "chew")) 18 22 Cout(element);