You're close. You just need to tell Perl what parts of the line you want to capture - how else would Perl know that you're not just interested in FILE_INPUT but also stuff following it? See perlre on how to capture things into $1. Basically the following RE should give you a start:
/(FILE_INPUT\w+)/
If the match is successful (and only then), the captured value will be stored in $1.
In reply to Re: Help on pattern match
by Corion
in thread Help on pattern match
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |