Question : Script to extract pattern

Given the following string:
file="JYAX3-0501MT011027AAE2U2APP.jpg"

Using a bash script I need to extract 011027 from it to use as a variable later in the script.  Using sed or awk how would I go about doing this?  There is a long list of these file names but they all have the same pattern.

Thanks,
Scott

Answer : Script to extract pattern

awk '/[0-9][0-9][[0-9][[0-9][A-Z][A-Z][0-9][0-9][[0-9][[0-9]/{print substr($0,match($0,/[0-9][0-9][[0-9][[0-9][A-Z][A-Z][0-9][0-9][[0-9][[0-9]/)+6,6)}'
Random Solutions  
 
programming4us programming4us