1
Developer's Corner / Searching Pre-format text in HTML and replacing with Icon
« on: January 30, 2021, 03:05 PM »
Hi, I had been looking for support to identify e-mail addresses of a web-page and replaces with contact now button(icon) which would further open the mail server. Till now, I got this:
html_string = "Your HTML here..." email_address = html_string.match(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i)[0]
Thanks for your support. It would mean a lot to me!
html_string = "Your HTML here..." email_address = html_string.match(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i)[0]
Thanks for your support. It would mean a lot to me!