Hello fellow coders :) I need help on my code using C# for extracting City Name and UK PostCode those UPPERCASE only from the address string example:
Input
15 Arnott Blk C Quadrant MOTHERWELL ML1 3TQ North Lanarkshire
Flat 3 2A Klea Avenue LONDON SW4 9JA London
12 Parish Close Dawley TELFORD TF4 3ER Shropshire
76 Admiralty Close WEST DRAYTON UB7 9NJ West Drayton
56 Glenburn Avenue MOTHERWELL ML1 5EF North Lanarkshire
25 Thirleby Road EDGWARE HA8 0HF Edgware
21 Prideaux Place Friars Place Lane LONDON W3 7AS London
1 Arnold Road STAINES-UPON-THAMES TW18 1LY Surrey
6 A Queen Street BRIDGWATER TA6 3DA Somerset Flat
8-B Lynn Court Mitcham Lane LONDON SW16 6LL London
35 Weirside Gardens WEST DRAYTON UB7 7TL
473 Rochfords Gardens SLOUGH SL2 5XF Berkshire
155 Strawberry Fields ADDLESTONE KT15 1FJ Surrey
Output
MOTHERWELL ML1 3TQ
LONDON SW4 9JA
TELEFORD TF4 3ER
WEST DRAYTON UB79NJ
MOTHERWELL ML1 5EF
EDGWARE HA8 0HF
LONDON W3 7AS
STAINE-UPON-THAMES TA6 3DA
LONDON SW16 6LL
WEST DRAYTON UB7 7TL
SLOUGH SL2 5XF
ADDLESTONE KT15 1FJ
They are fix UPPERCASE which I need to extract. Any help or tips are greatly appreciated thanks.