Created the regex for the methodes