I want to split the below string (present in a single column) separated by spaces from the end. For the below 3 rows, I want the following output
OUTPUT:
Country STATE STREET UNIT
AU NSW 2 12
AU NSW 51
AU NSW 12
INPUT:
12 2 NOELA PLACE ST MARYS NSW 2760 AU
51 MALABAR ROAD SOUTH COOGEE NSW 2034 AU
12 LISTER STREET WINSTON HILLS NSW 2153 AU
of course such conditional parsing is not reliable: