| http://www.w3.org/ns/prov#value | - 0 I added the + as you susgested, I come from another language where you can specify ALL i.e. remove all chars in the set ;-) Pattern myValidation = Pattern.compile( [^ + VALID_MESSAGE_PATTERN + ]+, Pattern.DOTALL ); myMatch = myValidation.matcher( messagePart ); isValid = myMatch.matches(); if ( !isValid ) { However it still complains saying the message is invalid.
|