in reply to Replacing an HTML element with multiple elements using HTML::TreeBuilder

I’m still working on understanding your code, but doesn’t \s include newline and carriage return characters? Whitespace
  • Comment on Re: Replacing an HTML element with multiple elements using HTML::TreeBuilder
  • Download Code

Replies are listed 'Best First'.
Re^2: Replacing an HTML element with multiple elements using HTML::TreeBuilder
by mldvx4 (Hermit) on Jul 03, 2019 at 14:46 UTC

    Yes, \s covers newlines as well as other whitespace. That part of the code works for my needs. The part that I do not know how to do is getting the whole original P element replaced by multiple new P elements. Perhaps I should write a more focused example.