Hi Paeryn,
Very helpful thank you. I had to make 2 changes to my new code, one as you suggested and when using re.finall I had to prefix the search with r. My code still needs to be fixed up a bit but at least I am getting it in a single line now.
Thanks,
Paul