<?php $string = '^foo bar$'; if (preg_match("^\^.*\$$", $string)) { print "true"; } else { print "false"; }
You have javascript disabled. You will not be able to edit any code.