15 { |
15 { |
16 public $rules = array( |
16 public $rules = array( |
17 'bold' => "/'''(.+?)'''/", |
17 'bold' => "/'''(.+?)'''/", |
18 'italic' => "/''(.+?)''/", |
18 'italic' => "/''(.+?)''/", |
19 'underline' => '/__(.+?)__/', |
19 'underline' => '/__(.+?)__/', |
20 'externalwithtext' => '#\[((?:https?|irc|ftp)://.+?) (.+?)\]#', |
20 'externalwithtext' => '#\[((?:https?|irc|ftp)://[^ ]+?) (.+?)\]#', |
21 'externalnotext' => '#\[((?:https?|irc|ftp)://.+?)\]#', |
21 'externalnotext' => '#\[((?:https?|irc|ftp)://[^ ]+?)\]#', |
22 'mailtonotext' => '#\[mailto:([^ \]]+?)\]#', |
22 'mailtonotext' => '#\[mailto:([^ \]]+?)\]#', |
23 'mailtowithtext' => '#\[mailto:([^ \]]+?) (.+?)\]#', |
23 'mailtowithtext' => '#\[mailto:([^ \]]+?) (.+?)\]#', |
24 'hr' => '/^[-]{4,} *$/m', |
24 'hr' => '/^[-]{4,} *$/m', |
25 'code' => '/^(?:<code>(?:\r?\n)?|<pre>)(.+?)(?:<\/pre>|(?:\r?\n)?<\/code>)$/mis' |
25 'code' => '/^(?:<code>(?:\r?\n)?|<pre>)(.+?)(?:<\/pre>|(?:\r?\n)?<\/code>)$/mis' |
26 ); |
26 ); |