Solved

Perl remove mailto tag from html page

Posted on 2006-10-22
2
218 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now