Is there a way to get the URL from below text using freemarker replace
or matches
available in freemarker built ins.
<#assign text = "There are some text with url like https://www.google.com" />
I Want something like below to get the url from this text.
${text?matches('some freemarker regex')} // expected: https://www.google.com
I searched on internet and found the same in javascript but don't know how to convert it in freemarker. how to detect and get url on string javascript
Thanks for help in advance!