regex equals refactor - @Nami-Doc