}
/***
- * @function re:get_pattern()
+ * @method re:get_pattern()
* Get a pattern for specified regexp object
* @return {string} pattern line
*/
}
/***
- * @function re:match(line)
+ * @method re:match(line)
* Match line against regular expression object. If line matches then this
* function returns the table of captured strings. Otherwise, nil is returned.
*
}
/***
- * @function re:split(line)
+ * @method re:split(line)
* Split line using the specified regular expression.
* Breaks the string on the pattern, and returns an array of the tokens.
* If the pattern contains capturing parentheses, then the text for each
}
/***
- * @function re:destroy()
+ * @method re:destroy()
* We are not using `__gc` meta-method as it is usually good idea to have
* compiled regexps to be stored permanently, so this method can be used
* for avoiding memory leaks for temporary regexps