It gives the wrong result. That list will match your first string even though it doesn't have three ?.
But again, it's possible that duplicates are disallowed, but the OP did not say they were disallowed.
In reply to Re^4: string containing characters
by ikegami
in thread string containing characters
by IvanH
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |