$ 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
In reply to Re: Replace leading Spaces after a tag
by kcott
in thread Replace leading Spaces after a tag
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |