Use dmd 2.064's matchAll and matchFirst which are recommended and useful