Desired output: 'A and B %regulate_each_other% in_cells'. That is tag the phrases in the sentence (as complete phrases not partial) and also fill the spaces within the tagged phrases with underscores if there are spaces in the pattern.
While I could achieve the tagging part as below, I am not sure how the spaces within the phrases can be filled with undescores. Any good way of doing this?
Thanks a lot.