# filename to me.
filename_regex = /\/([[:alnum:]_]+)\.html/
matches = filename_regex.match(@url)
# Overwrite the default if our regex worked.
filename = matches[1] if not (matches.nil? || matches.length < 1)
# filename to me.
filename_regex = /\/([[:alnum:]_]+)\.html/
matches = filename_regex.match(@url)
# Overwrite the default if our regex worked.
filename = matches[1] if not (matches.nil? || matches.length < 1)