@pipe.func<EOL>def resplit(prev, pattern, *args, **kw):
maxsplit = <NUM_LIT:0> if '<STR_LIT>' not in kw else kw.pop('<STR_LIT>')<EOL>pattern_obj = re.compile(pattern, *args, **kw)<EOL>for s in prev:<EOL><INDENT>yield pattern_obj.split(s, maxsplit=maxsplit)<EOL><DEDENT>
The resplit pipe split previous pipe input by regular expression.

    Use 'maxsplit' keyword argument to limit the number of split.

    :param prev: The previous iterator of pipe.
    :type prev: Pipe
    :param pattern: The pattern which used to split string.
    :type pattern: str|unicode