Hi for all!
I don't get why this regex doesn't work in ReplaceText proc NiFi:
Search Value ^<env.*"><env:Body>(.*)<\/env:Body><\/env:Envelope>$

text like:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><hbdhsbfsdhbfdhdfshdfh>vsaucvash
</env:Body></env:Envelope>
I need to cut this - <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body> and this - </env:Body></env:Envelope>
^<env.*"><env:Body>(.*)<\/env:Body><\/env:Envelope>$ - works for text like at the top just separately:
like this ^<env.*"><env:Body>(.*) and cut <env:Envelopexmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body>
like this (.*)<\/env:Body><\/env:Envelope>$ and cut </env:Body></env:Envelope>
But I need to cut all together in one processor. How could I do that?