Lines Matching refs:matches
80 preg_match_all('/\w*?="(?:\\.|[^\\"])*"|\S+/', $optstr, $matches);
82 $optsin = $matches[0];
85 if (preg_match("/^name=(.+)/",$o,$matches)) {
87 $opt['name'] = htmlspecialchars(trim($matches[1], '"\''), ENT_QUOTES);
88 } elseif (preg_match("/^ports=(\d+)/",$o,$matches)) {
89 $opt['ports'] = $matches[1];
90 } elseif (preg_match("/^rows=(\d+)/",$o,$matches)) {
91 $opt['rows'] = $matches[1];
92 } elseif (preg_match("/^groups=(\d+)/",$o,$matches)) {
93 $opt['groups'] = $matches[1];
94 } elseif (preg_match("/^rotate=(\d+)/",$o, $matches)) {
95 $opt['rotate'] = $matches[1];
96 } elseif (preg_match("/^switch=(\d+)/",$o, $matches)) {
97 $opt['switch'] = $matches[1];
199 $matchcount = preg_match_all('/"(?:\\.|[^\\"])*"|\S+/',$line,$matches);
201 $item['port'] = $matches[0][0];
202 $item['label'] = htmlspecialchars(trim($matches[0][1], '"\''), ENT_QUOTES);
204 if (substr($matches[0][2], 0, 1) == "#") {
205 $item['color'] = $matches[0][2];
207 $item['comment'] = $matches[0][2];
211 $item['comment'] .= " ".( isset( $matches[0][$x] ) ? $matches[0][$x] : '' );