in reply to Extract data from regex match where "." is newline?
Of course, one thing you could wonder is whether using regexps for this is the right solution. What if the ID and NameU attributes for some reason or another appear in reverse order?