httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Issa Mbodji <>
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>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

while ( my $line = <IN> ) {  

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


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message