Assuming a post code is in the form A0A 0AA, or A0 0AA where A is any letter and 0 is any number i have written the following sed script to search a web page for a post code.
s/\(([[:alnum:]]\{2,4\})\) \(([[:alnum:]]\{3\})\)/\1 \2/p
To store the first part (A0A) in the first region and second part (0AA) in the second region. then printing out what is found. However running this is currently not finding any postcodes.
Any ideas? thanks