Added regex for filename parsing.