![]() | Truly Streaming Pattern Matching |
The input can be either a string, like in Perl or the "re" module.
Or it can be an input file or file-like input of any kind (just so long as it has a ".read" method). If a file or file-like, the input is read in as needed.
The "lazy" reading of input greatly increases the ease of applying pattern matching to input data: you aren't stuck with stopping at line boundaries and the such.