Solved

Perl remove mailto tag from html page

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Sending email via Perl on Windows 3 137
pipe to sed or perl, please help 5 127
Having a problem with ActiveState Perl on 64-bit Windows 7 3 68
Perl Frameworks 1 80
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

23 Experts available now in Live!

Get 1:1 Help Now