mercredi 9 novembre 2016

Matching exclamation mark in a string in java

I have a line " !". White space and !. Two character string. How can i match this line with java pattern match. I tried "^\s{1}[^\s]+!" but not working.

Aucun commentaire:

Enregistrer un commentaire