How to trim a string based on specific criteria in progress openedge 4gl?

Discussão em 'StackOverflow' iniciado por fdantas, Abril 4, 2016.

  1. fdantas

    fdantas Administrator Moderador

    ABC+123:xy+123++23'EFG+123:xy+123++23'GHI+123:xy+123++23+mki+123'LMV++123:xy'

    I have above string . Apostrophe(') acts as a terminator which denotes end of segments . Hence ABC+123:xy+123++23 is a segment , its start tag is three chars ABC which is unique. Now I need to trim this string based on these start tags eg I need segments starting only with ABC and LMV . resulting string should be ABC+123:xy+123++23'LMV++123:xy'

    Continue reading...

Compartilhe esta Página