So I am using a Regular Expressions to extract all areas from a document. The problem is the areas are sometimes expressed with m2 and sometimes with m². I thought I can solve this problem by using the OR (|) operator like this
(\d+.\d+|\d+.\d+?\s)m(2|²)
but when I use this regex with the findall function he returns this for example:
('7,96 m2', '7,96 ', '2')
The desired output is of course:
('7,96 m2')
Am I using the brackets wrong?