old experiment with different approaches to regular expression matching