I shall make no bones about it - I am very unexperienced with perl!
Anyway this is what i want to do;
I have a lot of files (2-40).html
and in each file there is a large list of names that looks like;
AAvBB
AAvT
...
generally of the form [one or two letters] a 'v' and then [one or two letters]. each xxvxx name is unique and case sensitive
what i want to change this to is
(some html code 1 AAvBB) (some html code 2 AAvBB)
(some html code 1 AAvT) (some html code 2 AAvT)
...
so for each xxvxx i want to embedd it multiple times into a bit of html.
I have a very large number of these to do so I assume I can use a regex for ??v?? - and have it as a variable i can print back into the file.
However I am having a tough time with it.
Any help is most welcome!
Thank you
2005-02-15 Janitored by Arunbear - converted square brackets to entities, to avoid creation of bogus links
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.