NinoSkopac

Untitled

Nov 24th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1.     <?php
  2.     $regex = '/^[0{' . $amount . '}]\n$/m'; // /^[0{15}]\n$/m
  3.     $pattern = preg_replace($regex, null, $pattern); // $pattern is pattern above
  4.     ?>
Advertisement
Add Comment
Please, Sign In to add comment