Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi,
I have a very long text file with lines similar to the following throughout the text:
Article 1 News Article 2 Older News Article 3 Even Older News Article 4 Real Old News
Etc.
I’d like to change this so that the file reads:
\subsection*{Article 1 News} \subsection*{Article 2 Older News} \subsection*{Article 3 Even Older News} \subsection*{Article 4 Real Old News}
I can’t use a simple search and replace because the Article numbers change. Can Perl be used to do this?
Thanks in advance. In reply to Simple Text Manipulation by pseingalt
|
|