Hi,
I am trying to use regex to validate an input from JOptionpane i want to allow the user entering ONLY digits, letters and exclametion marks.
This is my line of code where i would like to put teh regex.
Code
String message = JOptionPane.showInputDialog(null, "Enter a Message: ");
Steganography.hide(message, imageChoosed);
lblPictureChoosed.setIcon(new ImageIcon(imageChoosed));
I would like to put the validation on String message.