Good day all - struggling a bit with how to do this, and am hoping somebody here already has it worked out somewhere and would be willing to share it.
I have a series of strings that look, roughly like the sting below. There can be anywhere from 1 to 1000 elements. The string is in this order:
CODE|SCORE|DESCRIPTION
ASIA|(0) (100)|Asia, Pacific Rim|BIZNEWS|(100) (100)|Bus, Eco, Govt News|BUSINESS|(100) (100)|Business News|CECO|(100) (100)|Country Economies|EURX|(70) (100)|European Exchange Vals|
What I need to do, is remove all elements when the score is NOT (100)(100). So for the above, I should be left with the string below (the first and last set of element have been removed as they do not meet the criteria:
BIZNEWS|(100) (100)|Bus, Eco, Govt News|BUSINESS|(100) (100)|Business News|CECO|(100) (100)|Country Economies
I hope this is sufficient info - if not, and you're willing to lend a hand, please let me know what else I can provide.
Thank you!
JP
I have a series of strings that look, roughly like the sting below. There can be anywhere from 1 to 1000 elements. The string is in this order:
CODE|SCORE|DESCRIPTION
ASIA|(0) (100)|Asia, Pacific Rim|BIZNEWS|(100) (100)|Bus, Eco, Govt News|BUSINESS|(100) (100)|Business News|CECO|(100) (100)|Country Economies|EURX|(70) (100)|European Exchange Vals|
What I need to do, is remove all elements when the score is NOT (100)(100). So for the above, I should be left with the string below (the first and last set of element have been removed as they do not meet the criteria:
BIZNEWS|(100) (100)|Bus, Eco, Govt News|BUSINESS|(100) (100)|Business News|CECO|(100) (100)|Country Economies
I hope this is sufficient info - if not, and you're willing to lend a hand, please let me know what else I can provide.
Thank you!
JP