Sep-13-2019, 09:06 PM
Thanks for answering =D
First I want to say that this function will handle text generated by a system, so the two situations you mentioned will never happen..
1) if the cut_2 string is found before the cut_1 string? Never happen
2) if you still find cut_1 in the string but there are no more cut_2's? Never happen
Now talking about what the function should do:
- she should remove pieces of text from a larger text
- the pieces to be removed will always be delimited by the same sequence at the beginning and end
- the text that will be between the delimiters is variable, we dont know the size or the information
- for example: use text "#123" to delimit the beginning and text "%456" to delimit the end
- an example of text would be: #123 hello %456 im eating #123@@%456 #123%456 now #123 bye%456
- the function must remove the sequences: #123 hello %456 / #123@@%456 / #123%456 / #123 bye%456
- and the end result should be: im eating now
I hope I explained it clearly
If you can help me I will be very grateful
First I want to say that this function will handle text generated by a system, so the two situations you mentioned will never happen..
1) if the cut_2 string is found before the cut_1 string? Never happen
2) if you still find cut_1 in the string but there are no more cut_2's? Never happen
Now talking about what the function should do:
- she should remove pieces of text from a larger text
- the pieces to be removed will always be delimited by the same sequence at the beginning and end
- the text that will be between the delimiters is variable, we dont know the size or the information
- for example: use text "#123" to delimit the beginning and text "%456" to delimit the end
- an example of text would be: #123 hello %456 im eating #123@@%456 #123%456 now #123 bye%456
- the function must remove the sequences: #123 hello %456 / #123@@%456 / #123%456 / #123 bye%456
- and the end result should be: im eating now
I hope I explained it clearly
If you can help me I will be very grateful