Hey all,
thanks for all the help before, especially to tall_man.
Heres my latest faidbh.
I have a data file writen like so:
fnlPfnrff3xvf31vfWrdaMIXMhAHtCALVrMcZ7 Od6cWuetY86lY8aMSnNCEHsxAHMxAFIpAFIpCEopAFIYAFI5CHtSEJxKCOfOjOfOnN6USm +Mx ADkQADkpAEoxCFI5GKVrENacOdaMMeetSt6tSsaMKbVzGEopCGNCEMZ7Kb2cjEoIAIw5AE +oY ALWte7WchMa9hNa9jLWcY8aEGIxaAHNCAHtSAGNCAKVaAMa1e7V7OYxKGJRSCKV7SqVrOb +WU UrWESqV7OSkIALW1hMa9lK2te7W1lL29pbWtlMate7WEGMacY6V7KffGa0pCMXNaQrWclO +/n xvfWpcbGpdbOpdbGrd7evdbOlNa1pb17Oe+tY5yUe7WEWsaMY8aMWoxrUpRrGPfOe6WEOZ +Rz GL17Md6tWnNKENa9rWMxEKWEKZRKEL1zIZxCAL1jKYxKCPfOc/fehKVzGKVrAJxaALVzCK +V7 GJRrEP///////////////////////////ywAAAAA5QGqAAAI/wABCBQYQGCAgQEGDgwAIE +AA AQACDBw4UGCAAAIEBggQAICAAAMHBggwcCCAAAIDAAggAEAAgQEECgAgYKAAAQIABBAgME +AA gQICCAAQIMDAgQMHDhQYQMAAAQIDCAwwcKDAAAMDDBwocEAAAQACDBw4EECAAAEECAQYQO +BA gAAEDgwQYOBAAAEEBgAQQECAgQEECgAQYKAAAQEABBAgUECAAAAEBBAAIMDAgQMHDhwYQI +AA AQMBBBg4MIDAAAMDDBwoMEAAAQACDBw4EEAAAAEECAQYQOBAgAAEDgwAIMDAgQEGBgAgIM +DA AAIFABgwUIAAAQACCBAoIEAAAAICCP8IACDAwIEDBw4UGEBAAAECAwgMMHCgwAADAwwcKD +BA AAECAwwcOBBAgAACBAIMIHAgQAACBwYIMHAggAACAwAIIABAAIEBBAoAECCAQAECAgAIIE +Cg gAABAAgIIABAgAABBgoMMHDgwIEDAwAQEGDgwIEDAwQIEABAAAEBBg4UGGDgwIEBAAQYOD +DA QIECAgQIMFBAgAAAAggIEEBgAAEAAgwcKDDAwIEDBwIAGECgQAEAAAAAEACAAIAABA4kWB +BA AAEBDAoMQFBAAIEBBAQIYBBAAIMDAwAIQDAAgAAFBQQIEGCggAABAAQIEECAwAABAAQIYB +BA AIMGAQQIECD/AAABAQoGMGhwYAAAAgIYNBggQACBAQQECGAQQIAABgUGABDAYICCAgIECD +Aw QIAAAAIECCBAYIAAAAIACGDQoEGBAQIECAAgQICCAgwaHBgAAAGDBgUGECAwgIAAAQwCCG +Bw YAAAAQwGIBggQAAAAQYKACAAQIAAAQQIDBAAQAAAAQQACAAgQIAAAAIMABAAQACDBAMECG +BQ YACBAQYEGBAAwIAAAQIUDBAgQAAAAQYGCBAggMAAAQIMDDBwAIAABgkECBBAQAABAQIACC +Ag gACCAQIEABBAIMAAAAAACAAAQAAAAAAAEAAAgAABAQIACBAAQIABAwAECBAAIACB
You get the idea.. A whole load of data seperated by "/" foward slashes. What I need is something to find the fist set of "//" doubles and insert text between them.
Its been a while since I've done anything like this and I can't find a solution in any of my old scripts. Seeing as I've only been at it for less than a year I don't have many old scripts that I've kept.
I appriciate any help you can give.
Thanks in advance

All the Best, Eoin...

If everything seems to be going well, you obviously don't know what the hell is going on.


In reply to simple pattern matching. by eoin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.