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

Notifications

Announcements

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,183 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard