97d58ef17aa3882900ad3b3df1f9716ddb1857ef
5 * Parses for horizontal ruling lines.
11 * @author Paul M. Jones <pmjones@php.net>
15 * @version $Id: Horiz.php,v 1.3 2005/02/23 17:38:29 pmjones Exp $
21 * Parses for horizontal ruling lines.
23 * This class implements a Text_Wiki_Parse to find source text marked to
24 * be a horizontal rule, as defined by four dashed on their own line.
30 * @author Paul M. Jones <pmjones@php.net>
34 class Text_Wiki_Parse_Horiz
extends Text_Wiki_Parse
{
39 * The regular expression used to parse the source text and find
40 * matches conforming to this rule. Used by the parse() method.
50 var $regex = '/^([-]{4,})$/m';
55 * Generates a replacement token for the matched text.
59 * @param array &$matches The array of matches from parse().
61 * @return string A token marking the horizontal rule.
65 function process(&$matches)
67 return $this->wiki
->addToken($this->rule
);