Hey @aanyoti1
You can do this with expressions but it is a little convoluted, review this data flow:

The URL has been extracted, the actions are:
1) using substring to remove all content before the first instance of 'https'
2) converting the remaining string content to plain text (This removes any new line chars (\n))
3) using substring to remove trailing content by locating the first whitespace
Here is the config:

And the expressions:
substring(variables('Text'),lastIndexOf(variables('Text'),'https'))
substring(outputs('Html_to_text')?['body'],0,indexOf(outputs('Html_to_text')?['body'],' '))
You could also consider using the Encodian 'Search Text - Regex' action which would be a lot more robust:

Configuration:

Regex: (?:(?:https?|ftp):\/\/|\b(?:[a-z\d]+\.))(?:(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))?\))+(?:\((?:[^\s()<>]+|(?:\(?:[^\s()<>]+\)))?\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))?
HTH