Puoi sempre usare una regexp, ma che codice non ti funzionerebbe?