Do you have a specification of the format of these files?
Be aware that using a regex is strongly frowned upon for parsing HTML and XML, as mentioned at:
Though Marshall has already provided you with a regex solution, note that if you only want to match .htm (and not .htmfred say) his regex:
should read:m/<FILENAME>(.*\.htm)/
using the \b regex assertion to match only on a word boundary (see perlre for more detail).m/<FILENAME>(.*\.htm)\b/
In reply to Re: pattern matching once
by eyepopslikeamosquito
in thread pattern matching once
by justin423
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |