some regex magic in the node recognition service