pulling out Numbers

Giganews Newsgroups
Subject: pulling out Numbers
Posted by:  peyman
Date: Tue, 21 Aug 2007

how can I pull out numbers from a string?like:
aa012985  to  012985
12ab-059    to  12059
the letters or characters might be either at the first, middle or at the end
of a string.
thanx in advance.