Thanks for your suggestion.

I have included 3 records below. Please see my response to Dave's feedback for a more complete description of the problem.

Appreciate your help.

'1056070' => '01.05.200000.00.00005 I2 SN Y2001.11 +.200400113.1500084.9000096.205001.05.2000Computed tomography - scan o +f facial bones,5001.05.2000paranasal sinuses or both, with scan of br +ain,5001.05.2000without intravenous contrast medium (R) (NK)5001.05.2 +000(Anaes.)', '1032042' => '01.12.199100.00.00003 T8 2 SN Y2001.11 +.200401097.2000822.904001.11.1995(Anaes.)5001.12.1991Rectum and anus, + abdominoperineal resection of,5001.12.1991combined synchronous opera +tion, abdominal5001.12.1991resection5001.12.1991(Assist.)', '1021432' => '01.11.200100.00.00003 T1011 SN Y2001.11 +.200400084.2500063.2000071.655001.11.2001Initiation of management of +anaesthesia for5001.11.2001repair of arteriovenous fistula of knee or +5001.11.2001popliteal area5001.11.2001(005)',

In reply to Re^2: Extracting fields by kerrya
in thread Extracting fields by kerrya

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.