in reply to Replace leading Spaces after a tag
$ perl -wE 'my $x = q{Some Text <br> ABCD </br>...}; $x =~ s/<br> +(\s*)/q{<br>} . q{ } x length($1)/eg; say $x' Some Text <br> ABCD </br>...
Minor side issue: </br> isn't a valid HTML tag.
-- Ken
|
|---|