I have a column that has both numbers and their units and I am trying to split it into two columns with regex, but I don't know how to use regex with split_part. Can anyone advise?
This is an example column:
| lot_size1 |
---------+---+-----
| 25,665 Lot SqFt |
| 4,111 Lot SqFt |
| 14,000 Lot SqFt |
| Lot SqFt |
| 40.00 Acres |
This is a draft of my query:
select split_part(lot_size1, ???,1) as area,
split_part(lot_size1, ???,2) as units;