#!/usr/bin/perl -pi.bak -00 # -p flag puts a loop around commands that include a "p"rint command # -i flag modifies files in place, and saves old ones in ".bak" # basic regex substitute s/// can also be written as # s{}{}, which is convenient for html (don't have to # escape all the "/"s. /i option allows case-insensitive matching. s{(rc\s+optical(\s+systems)?\s*\s+telescope\s+operating\s+at\s+f/[0-9.]+\s*
)}{$1\n Paramount ME Robotic Telescope Mount\n
}i;