reg for txt