in reply to Re: Re: Search and replace in html
in thread Search and replace in html

The output is ...
asdfasdf asdfasdf asdfasdfasdfasdf blah foo bar asdfasdf asdfasdf
What's wrong with that? It got rid of the html tags?
I think that is all Anonymous Monk wanted to accomplish.
That is also why I stated in my original post ...

Do you want something like this?

Replies are listed 'Best First'.
Re: Re: Re: Re: Search and replace in html
by Limbic~Region (Chancellor) on May 09, 2003 at 12:49 UTC
    From the original post:
    $TheLine =~ s/<html>([^\n]*)<\/html>/$1/i;

    The anonymous monk appears to want was it between the HTML tags.
  • You have included what is before and after
  • You have not included a fake html tag

    It doesn't really matter - it just doesn't look like what the anonymous monk was after

    Cheers - L~R

      What can I say your right! ++ to you