Adjusted the regex so that values can be obtained when the opening element tag has more to its contents than just the name ie. <element extra=information>value</element>