Mark, at first glance, the only reason it wouldn't print anything is because the RegEx you're using isn't matching anything. It's hard to say without seeing the contents of the file you're opening, but that would be the first place I would look. Try simplifying your RegEx to something you know will match for sure, and print that. Then gradually build out the expression to include everything you want to match.