divide methods from Eraser class to RegexUtils class