| http://www.w3.org/ns/prov#value | - A regex like this should allow any character except for exclamation marks (!) and question marks (?):Code: Select all$regex = '/^[^!\\?]*$/';The ^ symbol inside of the [] brackets negates the character set, so that it matches any character except the ones listed.
|