httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Issa Mbodji <issambo...@yahoo.com>
Subject [users@httpd] Reg Expr and HTML tags
Date Sun, 31 Aug 2003 02:18:37 GMT
I have a text file with HTML tags just like this:

<li><b>ABI/INFORM<br>
<li><b>Academic Search Premier</b><br>
<li><strong>Business Source Premier </strong><br>

How do I go about pulling the text only without the
tags. This is what I am trying and it is not properly
working:

while ( my $line = <IN> ) {  

	if($line =~ m/^<li>(<b>|<strong>|\t)(.*)(<|\t)/g)
	{
	print "Database = $2\n";
	}

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message