Regex parser for filename extraction.