Is there a way to use the split function to split data based on a pattern of chars instead of a single char?
For example, I have exported data from a query and wish to split this data at the words (pattern) "RZDoorsRequirement"
I try: set splitData [ split $data "RZDoorsRequirement" ], but this doesn't work correctly where the data is as follows:
Data equals (as read into TCL buffer from file:
RZDoorsRequirement|G709 Requirements|634|I-Req|The Line Interface shall transmit at a nominal power level of 5.0dBm.|
RZDoorsRequirement|G709 Requirements|635|I-Req|The Line Interface shall support line side reception in the range of +1dBm to -26dBM.|
RZDoorsRequirement|G709 Requirements|793|I-Req|The Line Interface shall support 100km chromatic dispersion toloerance.|
Is there any way to do this?
For example, I have exported data from a query and wish to split this data at the words (pattern) "RZDoorsRequirement"
I try: set splitData [ split $data "RZDoorsRequirement" ], but this doesn't work correctly where the data is as follows:
Data equals (as read into TCL buffer from file:
RZDoorsRequirement|G709 Requirements|634|I-Req|The Line Interface shall transmit at a nominal power level of 5.0dBm.|
RZDoorsRequirement|G709 Requirements|635|I-Req|The Line Interface shall support line side reception in the range of +1dBm to -26dBM.|
RZDoorsRequirement|G709 Requirements|793|I-Req|The Line Interface shall support 100km chromatic dispersion toloerance.|
Is there any way to do this?