File extension is in extensions list: Difference between revisions

m
→‎{{header|REXX}}: added a comment to the REXX section header as per the task's requirement.
(→‎{{header|REXX}}: changed program to reflect new task requirements and examples.)
m (→‎{{header|REXX}}: added a comment to the REXX section header as per the task's requirement.)
Line 621:
 
=={{header|REXX}}==
This REXX version handles the extra credit requirement.
<lang rexx>/*REXX program displays if a filename has a known extension (as per a list of EXTs).*/
$= 'zip rar 7z gz archive A## tar.bz2'; upper $ /*a list of "allowable" file extensions*/