fileext

Compares the filename extension of the data file to a string.

Syntax

fileext "regexp"

Comments

Looks for regexp at the end of the current file's name. If that file does not end in the given extension, fileext generates a failure condition.

Examples

fileext "\.req" // matches all ADAMS request files (which end in ".req")