Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Perl remove mailto tag from html page

Posted on 2006-10-22
2
223 Views
Last Modified: 2008-03-03
Hi Experts,

i just need a little line of script to remove mailto tag from html page

this is what I am using but not working:

$url =~ s/<a href=mailto:.*\/a>//gi;

could you give me some help

thanks riccardo
0
Comment
Question by:rcinformatica
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 250 total points
ID: 17784071
$url =~ s/<a\s*href="?mailto:.*?\/a>//gis;
0
 

Author Comment

by:rcinformatica
ID: 17784087
thanks it works great
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Perl strange behaviour 5 73
Check file date before getting folder path 1 80
Question about @INC variable in perl 1 65
Transforming a Soap message to a simple xml message! 10 150
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question