DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Searching Pre-format text in HTML and replacing with Icon  (Read 7,934 times)

shahtheworrior

  • Participant
  • Joined in 2021
  • *
  • Posts: 1
Searching Pre-format text in HTML and replacing with Icon
« on: January 30, 2021, 09: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!

Original address: https://www.donationcoder.com/forum/index.php?topic=51028.0