web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Extract URL from text

(1) ShareShare
ReportReport
Posted on by

I am attempting to extract a URL value from a string of Text, but cannot seem to get the entire URL

This is a sample of the text content:

 

Watch Now: https://tdh.streamingvideo.tn.gov/Mediasite/Play/abf43eb2772246e4bceba593ee85a4381d

July 16 2024 Tennessee Board of Dentistry Microsoft Teams meeting 11 am 

Recorded: 7/16/2024 11:00:00 AM

Duration: 00:00:00

Test

 

 

The following expression should find the the substring pos of 'https' and the end should be the first space after that. 

 

 

substring( variables('BoardMtgTxt'), lastIndexOf( variables('BoardMtgTxt'),'https'), indexOf(variables('BoardMtgTxt'), ' '))

 

 

From this, it's only giving me "https".

 

hawkwynd_0-1720475962435.png

 

I've even tried using HTML_to_text and then performing the following: 

substring( outputs('Html_to_text')?['body'], lastIndexOf( outputs('Html_to_text')?['body'],'https'), indexOf(outputs('Html_to_text')?['body'], ' '))

Either way, the result is the same:

hawkwynd_0-1720476701082.png

 

Any assistance with extracting the full URL is deeply appreciated. 

 

Categories:
I have the same question (0)
  • hawkwynd Profile Picture
    on at

    Ok, I saw the information about that utility. I'm sure there's a simple way for Power Automate to be able to do this without the use of a 3rd party tool. 

     

    Does anyone have the expertise to be able to help with this simple text operation? PHP, javascript, and other languages can do this in a single line of code. In linux, I can do it on the command line.

     

  • Verified answer
    Chriddle Profile Picture
    8,525 Super User 2026 Season 1 on at

    Chriddle_0-1720539494826.png

    From

    split(
    	replace(
    		outputs('Compose'),
    		decodeUriComponent('%0A'),
    		' '
    	),
    	' '
    )

    Filter

    item()

    starts with

    https://

     

    Chriddle_1-1720539596858.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard