i have this string :
Le serveur a retourné une erreur "500 An exception occurred while executing 'select DIVISIONTEST(4,0) from dual': SQLSTATE[HY000]: General error: 20000 OCIStmtExecute: ORA-20000: Bien essayé! ORA-06512: à "FOO.DIVISIONTEST", line 8 (ext\pdo_oci\oci_statement.c:148)".
i would like to show only this part : Bien essayé!
nothing before or after this part.
This string is generated by a:
$exception->getMessage()
Can you help me with a regex ? thanks you
EDIT : sorry , the customized message will change. I should have been more precise. I'm looking for a way to get the message after ORA-20000:
and before the ORA:
following .
I'm trying to get exception raised from a PL/SQL request. The error raised is a customized message