There is the following custom field called Url__c of type Account I am using and the data added to the field is mainly urls and websites. The problem is that the field is rich text and the data entered in the field Url__c is not the proper format. What I mean by not a proper format is:
<span style="color: #5f604b;">
<span style="font: signacondcolumn-book;">
<span style="font-size:8.0pt;">https://www.merchant.com/store</span>
</span>
</span><br>
<a href'="www.account.com">Account</a>
I'll need your advise what can be done in order to be able to get the urls in the proper format. What I would like to know is how to get beginning and the end of the url. For instance I need to get either the 'http', 'https' or 'www' and the end of the url.
The end of the url turned out to be more difficutl to get because in table Account in the field Url__c is rich text and for the added text there is no certain criterium on how to know for certain where the ulr will fininsh. Therfore I've decided to use regular expressions which should give me the url of the added text. The other solution to the problem is to change the field type from rich text to url but the problem is that the url field type is restricted in terms of characters or symbols and it does not allow to enter many web adresses.
Could you please advise an appropriate approach on how to get the urls out the added text in the Url__c field
Have you used similar approach with regular expressions and if you have could you please send examples.
Regards,
Dilyan