Is it a positive table? String can only contain English ,? Word, bottom ?? And? Is there a string to be judged ?, A string can only contain English letters, question marks, and question marks ,? Word, bottom ?? And "\",??? How ?? Formal table? ,??.
Reply to discussion (solution)
/^ [\ W \] + $/
/^ [\ W \] + $/
Hi, I used it ?? Method, but the program ?? Now, Ma ?? Look
Echo" ";
Function ispassword ($ str ){
If (preg_match ('/^ [\ w \] + $/', $ str )){
Return true;
} Else {
Return false;
}
}
$ Password = 'This _ is_test _ \ thisstr ';
If (ispassword ($ password )){
Echo 'conformances ';
} Else {
Echo 'nonconformity ';
}
?>
Program ?? :(! ) Warning: preg_match () [function. preg-match]: Compilation failed: missing terminating] for character class at offset 8
Can I change if (preg_match ('/^ [\ w \] + $/', $ str? If (preg_match ('/^ [\ w \] + $/', $ str ))? The operation is normal. Are you missing? \ Why?
Yes
This is related to the php version.
Yes
This is related to the php version.
?? Moderator ..??..