perl -i -pe 's/(<% INCLUDE file)(1|2)(\.txt %>)/$1 . ($2 == 1 ? 2 : 1) + . $3/eg' index.txt
In reply to Re: modifying the search pattern of a file.
by splinky
in thread modifying the search pattern of a file.
by damian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |