News

This Python script, regex.py, demonstrates the use of regular expressions (regex) in Python using the re module. It includes several examples of different regex patterns and how they match strings.
calc.py implements a parser for a command-line calculator. calc_runner.py implements a read-evaluate-print loop (repl) for the calculator. calc_test.py are unit tests for the calculator. Each rule, ...
In Java, I was surprised by how close the performance was for standard regular expressions to using string primitives. String primitives took 188 ms to process the 100,000 lines. Standard regular ...