public searchText(notnull pattern as String, options as SearchOptions = null) as ArrayList<SearchMatch>
Searches this file or directory and collects non-overlapping occurrences. Symlinks are not followed. Memory includes results and the longest line.
| Parameter | Description |
|---|---|
pattern | Literal text, or regex when options.regex is true. |
options | Settings; null selects defaults. |
Matches with one-based Unicode scalar line/column coordinates.
hits = Path.cwd.searchText("TODO")