in reply to Re^4: Help:getting parts of the strings from a file into managable variables
in thread Help:getting parts of the strings from a file into managable variables

You change the regex from
m|^ <([^>]+)> (.*) </\1> |x)
to
m|^ \s* <([^>]+)> (.*) </\1> |x)
The \s* matches zero or more spaces.

Cheers,
Tom