<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def find_one(cls, pattern, string, flags=0):
 """JS-like match object. Use index number to get groups, if not match or no group, will return ''. Basic Usage:: <torequests.utils.RegMatch object at 0x0705F1D0> 'abcd' '' 'ab' 'b' 'default' <torequests.utils.RegMatch object at 0x0705F1D0> 'abc' 'b' 'c' '' 'b' """

        item = re.search(pattern, string, flags=flags)
        return cls(item)