added regex search for methods