Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Answered

Regex pattern to get URL between <>

Like (0) ShareShare
ReportReport
Posted on 25 Jan 2023 13:31:47 by 10

What is the Regex pattern to get URL between <>

  • werkbook Profile Picture
    36 on 11 Feb 2023 at 09:06:58
    Re: Regex pattern to get URL between <>

    For a more generic solution to extract all the URLs from the text, we can make use of the action Parse text:

    Parse text.png

     

    Under the parameter Text to find, we will specify the following regular expression:

    (?:(?:https?|ftp|file):\\/\\/|www\\.|ftp\\.)(?:\\([-a-zA-Z0-9+&@#\\/%%=~_|$?!:,.]*\\)|[-a-zA-Z0-9+&@#\\/%%=~_|$?!:,.])*(?:\\([-a-zA-Z0-9+&@#\\/%%=~_|$?!:,.]*\\)|[a-zA-Z0-9+&@#\\/%%=~_|$])

     

    Remember to enable the option Is regular expression. In addition, the option First occurence only allows you to specify if you want to find the first match or all of the matches if there are more than 1. In the example, all the found URLs will be stored in the output variable Matches.

     

    💡Pro tip: Use ‘%%’ to escape the special character ‘%’. Alternatively, you can also make use of the action Escape text for regular expression.

     

    PS: To read more about this topic, please visit https://werkbook.co/How-to-check-if-a-text-contains-certain-patterns-like-email-address-or-URL-7eb5bd4126db4f659cdddd80046a1f42

  • Bh12 Profile Picture
    10 on 07 Feb 2023 at 08:43:16
    Re: Regex pattern to get URL between <>

    thx a lot

     

     

  • Verified answer
    Highboy Profile Picture
    1,171 Super User 2024 Season 1 on 26 Jan 2023 at 12:11:57
    Re: Regex pattern to get URL between <>

    To get everything between you can use this regx
    (?<=<).*(?=>)

    See reult below.

    Highboy_0-1674735160862.png

     

  • Kaif_Siddique Profile Picture
    2,104 Super User 2024 Season 1 on 25 Jan 2023 at 19:59:37
    Re: Regex pattern to get URL between <>

    share few sample patterns for better understanding.

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 147 Super User 2025 Season 1

#2
Riyaz_riz11 Profile Picture

Riyaz_riz11 56 Super User 2025 Season 1

#3
Nived_Nambiar Profile Picture

Nived_Nambiar 30 Super User 2025 Season 1

Overall leaderboard
Loading started