<?php $subject = str_repeat('a', 5431); $res = preg_match('~(a)*~', $subject); if ($res > 0) { echo 'match', PHP_EOL; } elseif ($res === 0) { echo 'no match', PHP_EOL; } else { echo 'preg_match error ', preg_last_error(), PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.