Lines Matching refs:match
29 if (preg_match('/^(\d+)\:(.*)$/', $entry, $match)) {
30 $this->options[(int)$match[1]] = trim($match[2]);
31 } elseif (preg_match('/^(\d+)\-(\d+)\:(.*)$/', $entry, $match)) {
32 foreach(range($match[1], $match[2]) as $key) {
33 $this->options[$key] = $match[3];
67 $result = preg_replace_callback('/\[([^]]+)\]/', function($match) {
68 $options = explode('|', $match[1]);
76 $result = preg_replace_callback('/{(\d*)[Dd](\d+)(\+|\-)?(\d+)?}/', function($match) {
77 return $this->rollDie($match[0]);