Other Software > Developer's Corner
Searching Pre-format text in HTML and replacing with Icon
(1/1)
shahtheworrior:
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!
Navigation
[0] Message Index
Go to full version