This is unfortunately not within the scope of what pure regex can do for you unless schema manually implements such functionality.
For example, say, this is your text: aaaaBBBcc
Now what you want is an [EXTRACT]BBB, which is a [REMOVEALL]aaaa[AND]cc[AND]...
This is not an atomar operation...