Changes between Version 4 and Version 5 of TextPatternExample
- Timestamp:
- 04/20/12 14:09:34 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TextPatternExample
v4 v5 12 12 void main() 13 13 { 14 char[]source = "all cows eat grass";14 string source = "all cows eat grass"; 15 15 16 16 // split into an array 17 char[][] elements = Text.split (source, "eat");17 string[] elements = Text.split (source, "eat"); 18 18 foreach (element; elements) 19 19 Cout(element).newline;