@retiolus This sounds like a task for my old friend regex, but someone might know of something.