<?php $exception ='word1|word3|word3|word4' ; $regex = "(?!('.$exception.')((\W+)|$))[a-zA-Z\-_]+/?$"; $myword = 'a-unicode-statement-like-سلام' ; $m = preg_match($regex, $myword); print $m;
You have javascript disabled. You will not be able to edit any code.