Lines Matching refs:preg_match

178 		if ($coords[0] !== false && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $coords[0], $m)) {
185 if ($coords[1] !== false && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $coords[1], $m)) {
512 if (isset($stops[$i]['offset']) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $stops[$i]['offset'], $m)) {
624 while (preg_match('/(\([^\)]*?),/', $v)) {
628 while (preg_match('/(\([^\)]*?)[ ]/', $v)) {
637 if (preg_match('/(left|center|right|bottom|top|deg|grad|rad)/i', $bgr[0]) && !preg_match('/(<#|rgb|rgba|hsl|hsla)/i', $bgr[0])) {
651 if (preg_match('/([\-]*[0-9\.]+)(deg|grad|rad)/i', $bgr[0], $m)) {
676 if (preg_match('/(\d+)[%]/i', $first[0], $m)) {
678 } elseif (!isset($startx) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[0], $m)) {
684 if (isset($first[1]) && preg_match('/(\d+)[%]/i', $first[1], $m)) {
686 } elseif (!isset($starty) && isset($first[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[1], $m)) {
751 while (preg_match('/(\([^\)]*?),/', $v)) {
755 while (preg_match('/(\([^\)]*?)[ ]/', $v)) {
769 if (preg_match('/(left|center|right|bottom|top|deg|grad|rad)/i', $bgr[0]) && !preg_match('/(<#|rgb|rgba|hsl|hsla)/i', $bgr[0])) {
775 } elseif (preg_match('/(circle|ellipse|closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i', $bgr[0])) {
782 if (preg_match('/(circle|ellipse|closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i', $bgr[1])) {
801 if (preg_match('/(\d+)[%]/i', $first[0], $m)) {
803 } elseif (!isset($startx) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[0], $m)) {
809 if (isset($first[1]) && preg_match('/(\d+)[%]/i', $first[1], $m)) {
811 } elseif (!isset($starty) && isset($first[1]) && preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $first[1], $m)) {
838 if (preg_match('/(circle|ellipse)/i', $shape_size, $m)) {
841 if (preg_match('/(closest-side|closest-corner|farthest-side|farthest-corner|contain|cover)/i', $shape_size, $m)) {
904 if (preg_match('/(\d+)[%]/', $el[1], $m)) {
909 } elseif (preg_match('/([0-9.]+(px|em|ex|pc|pt|cm|mm|in))/i', $el[1], $m)) {
930 if (preg_match('/linear-gradient\((.*)\)/', $bg, $m)) {
935 } elseif (preg_match('/radial-gradient\((.*)\)/', $bg, $m)) {