Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regex problem

Status
Not open for further replies.

danielhozac

Programmer
Aug 21, 2001
2,058
SE
When I try to use this regular expression
$myline =~ s/\<\/?*\>//gi;
apache gives me this error
[Sat Dec 01 12:22:20 2001] [error] [client ***.***.***.***] Nested quantifiers before HERE mark in regex m/</?* << HERE >/ at /websites/script.pl line 44.
What is the problem?

//Daniel
 
Changing

$myline =~ s/\<\/?*\>//gi;

to

$myline =~ s/\<\/*?\>//gi;

should help.




regards
C



&quot;Brahmaiva satyam&quot;
-Adi Shankara (788-820 AD)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top