~INSTITUTIONS FOR INFORMATION & TECHNOLOGY ORIENTATION PROGRAMS:
~TPS#~123455~~Y1 21-2022
~PARTDATA#
Above mentioned one is sample data.
1.Here i want to extract (“~INSTITUTIONS FOR INFORMATION & TECHNOLOGY ORIENTATION PROGRAMS:”).
2.Then Document No is dynamic, Instead of this some other data also can come.
3.In some scenarios (“~TPS#~123455~~Y1 21-2022”),these data is not available only (“~PARTDATA#”).
~INSTITUTIONS FOR INFORMATION & TECHNOLOGY ORIENTATION PROGRAMS:
~TPS#~123455~~Y1 21-2022
~PARTDATA#
This is the input and the output should be
“~INSTITUTIONS FOR INFORMATION & TECHNOLOGY ORIENTATION PROGRAMS:”
Document No:123 it can be document no or some other words.
“DocumentNo:123” this is dynamic, instead of Document No,
Date ,Total anything can come