How to extract the first URL in the below text
Please access the data of the attachemebt website by clicking following URL:
https://firsturl.com/6ruhudye
Or by goint to the MetaTrade website at the following URL:
https://example.com
and entering the data
@SN2 - please try below regex pattern
(?:<\w+.*?>|[^=!:'"/]|^)((?:https?://|www\.)[-\w]+(?:\.[-\w]+)*(?::\d+)?(?:/(?:(?:[~\w\+%-]|(?:[,.;@:][^\s$]))+)?)*(?:\?[\w\+%&=.;:-]+)?(?:\#[\w\-\.]*)?)(?:\p{P}|\s|<|$)
output -