Don't ask to ask, just ask | |
PerlMonks |
Re^3: multiple-pass search?by jdporter (Paladin) |
on Dec 10, 2021 at 01:57 UTC ( [id://11139523]=note: print w/replies, xml ) | Need Help?? |
So I take it the filename will have the exact pattern abstract-NNN.tex. If so, the regex you gave is too broad. It will match, for example, nonabstract-000stexts. You need to anchor the beginning and end, and escape the dot: /^abstract-(\d{3})\.tex$/
In Section
Seekers of Perl Wisdom
|
|