You're pretty close,
I don't see why you're counting the lines. You can make that print to a new output file if you want.for (@lines) { s/(\d+\s+)(.+)$/$1(Birthday) $2 - singer/; print; }
After Compline,
Zaxo
In reply to Re: small regex help
by Zaxo
in thread small regex help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |