Began basic regex implementation