Implement a very basic regular expression checker which given a string and a regex, returns true or false. Should consider 'a'-'z','.', and '*'.
Anonymous
$regex = "/^[a-z\.\*]+$/"; $string = "something..."; return preg_match($regex, $string);
Check out your Company Bowl for anonymous work chats.