Pattern Based Audio Splitting

lets say i have a very long audio file that has a repetitive pattern . i want to split the audio whenever that pattern shows up .
i was thinking like generating a fingerprint of that pattern , searching through audio for that matches the fingerprint and split the audio.
how can i solve this problem ? can audacity do that ? i have some experience with programming . may be a dsp language can help ?

thanks in advance.

Audacity has a powerful scripting language built in called “Nyquist”. See: Missing features - Audacity Support

A tough job.