Hi @blpraveena
To get the data within complete text but within words, you can follow the steps
Assume you want data b/w world and fascinating from the text

1. Use the find text position action for finding the position of word world

2. simmilarly use it for word fascinating.
3. Now use the below function to get sentence b/w world and fascinating
slice(outputs('Compose'),outputs('Find_text_position:_word')?['body'],add(outputs('Find_text_position_-_Fascinating')?['body'],add(length('fascinating'),1)))

(The logic behind the function is I am using slice function which slices the string/text from start index to end index)
Complete flow

Output (in compose 3 action)

Hope this helps !
Mark it as solution if it solves ur query