improve regex, avoid problem when thread id has same prefix number