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 Platform Community / Forums / Power Automate / Regex pattern to get U...
Power Automate
Answered

Regex pattern to get URL between <>

(0) ShareShare
ReportReport
Posted on by 10

What is the Regex pattern to get URL between <>

I have the same question (0)
  • Kaif_Siddique Profile Picture
    2,108 Super User 2024 Season 1 on at

    share few sample patterns for better understanding.

     

  • Verified answer
    Highboy Profile Picture
    1,187 Super User 2024 Season 1 on at

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

    See reult below.

    Highboy_0-1674735160862.png

     

  • Bh12 Profile Picture
    10 on at

    thx a lot

     

     

  • werkbook Profile Picture
    36 on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard