<?php $tests = [ '7hello', 'Fooey', 'Shoo3y', 'Whoa!', 'A1_B2_C3_', '_ABC', 'UB40', 'omg', 'Hi_', 'Stackoverflow_', ]; foreach ($tests as $test) { printf( "%s : %s\n", $test, preg_match('/^(?:[a-z]\w*){3}$/i', $test) ? 'pass' : 'fail' ); }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`