reprEx <- "jhbasdjjk\n ELECTRONIC WITHDRAWALS kd; jjjjj ELECTRONIC WITHDRAWALS cont. jjjajhahgab OTHER WITHDRAWALS"
I would like to extract all text between the first occurrence of ELECTRONIC WITHDRAWALS and OTHER WITHDRAWALS. the result I want would look like the following:
desiredResult <- "kd; jjjjj ELECTRONIC WITHDRAWALS cont. jjjajhahgab"