- Output for 5.3.0 - 5.3.24, 5.4.0 - 5.4.15
- Parse error: syntax error, unexpected '}' in NtvMP on line 9
Process exited with code 255. - Output for 5.3.25
- Parse error: syntax error, unexpected '}' in /in/Bge5o on line 9
Process exited with code 255.
<?php
$test = "case ( 'this_is__test_innit'):";
if (!preg_match('/case[\s]*?\([\s]*?[\'|\"][^\'|^\"]+/', $test, $matches)) {
print 'no match';
} else {
print preg_replace('/case[\s]*?\([\s]*?[\'|\"]/', '', $matches[0])
}