Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'dart:io';
- import 'dart:async';
- void main() {
- String f = new File("/home/hayden/journal.txt")..readAsString();
- RegExp wordSplit = new RegExp(r"(\w+)");
- Iterable<Match> words = wordSplit.allMatches(f);
- print(words);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement