RegEx

  • Creator
    Topic
  • #51424
    Femina Jaffer
    Participant

    Hello,

    I was wondering if anyone could give me some tips or ideas on how to parse out a string in a field.  For example, in OBX7 I have data looking like this ‘

    I need to take out the “** Age Adjusted **” and place it in an NTE segment.  How can this be done?

    Thank you,

    Femina

Viewing 2 reply threads
  • Author
    Replies
    • #70231

      Femina Jaffer wrote:

      Hello,

      I was wondering if anyone could give me some tips or ideas on how to parse out a string in a field.

      -- Max Drown (Infor)

    • #70232

      Here’s how you could do it in a tcl fragment in an xlate:

      Code:

      regexp {CDATA[(.*?)]} [lindex $xlateInVals 0] match result
      set xlateOutVals [list $result]

      -- Max Drown (Infor)

    • #70233
      Femina Jaffer
      Participant

      Thanks Max, this did the trick!

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,127
Forums
28
Topics
9,300
Replies
34,445
Topic Tags
288
Empty Topic Tags
10