OK then. That looks neater. Thanks. My regex knowledge isn't good enough to have thought of doing it like that in the first place.