Mathew, thank you thank you thank you! Thanks to all :-) regards manish Manish Sharma Simply Graphix Pvt. Ltd. http://www.simplygraphix.com - Extreme Design http://www.fontmagic.com - Largest True Type Fonts Directory on the Internet -----Original Message----- From: Matthew Fischer <mfischer at e-fishsolutions.com> To: thelist at lists.evolt.org <thelist at lists.evolt.org> Date: Wednesday, April 04, 2001 10:05 AM Subject: Re: [thelist] Perl Regex >On 4/4/01 at 9:29 AM, Manish Sharma <msharma at satyam.net.in> wrote: > >> What's the best Perl Regex that matches HTML tags in a line? > > >$string = "<TITLE>Test title</TITLE>"; >$string =~ s/<[^>]+>//g; >print "$string"; > >Result: > "Test title" > >The expression matches all occurrences of a "<", followed by one or more characters that aren't a ">", followed by a ">". If you don't have the "g" at the end, it will only match the first occurrence. > >--------------------------------------- >For unsubscribe and other options, including >the Tip Harvester and archive of TheList go to: >http://lists.evolt.org Workers of the Web, evolt ! >