texerasmo
29-10-2007, 16:01
Ciao tutti dovrei fare un regual expression .
i parametri sono questi
String testjava="throw new SQLErrorException(\"broker.getDbController().getContext() fallito\") ";
le mie condizioni sono
La parola Exception seguita da ("
e che la stringa finisce");
come posso fare?
String patternStr = "[A-Za-z]+Exception[(\"]+[A-Z0-9._%+-]$[\")]";
i parametri sono questi
String testjava="throw new SQLErrorException(\"broker.getDbController().getContext() fallito\") ";
le mie condizioni sono
La parola Exception seguita da ("
e che la stringa finisce");
come posso fare?
String patternStr = "[A-Za-z]+Exception[(\"]+[A-Z0-9._%+-]$[\")]";