Extract Domain from URL with RegEx

nefer_l

Member
I found this RegEx to be helpful for the Text Formatter Action using the Extract Pattern Action Event:

^(?:.*://)?(?:www\.)?([^:/]*).*$

Sample Input: https://www.parachutehome.com/
Sample Output: parachutehome.com
 

Attachments

  • Screen Shot 2021-06-29 at 7.16.34 PM.png
    Screen Shot 2021-06-29 at 7.16.34 PM.png
    209.3 KB · Views: 168
Top