Hello.
I have a problem in constructing my regex, I took in the String source following:
Code:
[R_RECEVABLE] =''OR ([R_RECEVABLE] = 'O' AND [R_PDL_ETAT] ='') OR ([R_RECEVABLE] = 'O' AND [R_PDL_ETAT] = 'S' AND [AFF_K_PREV_FRN] ='')
And I would have a result like:
Code:
-> [A_AECEVABLE] =''
-> OA
-> [A_AECEVABLE] = 'O' AND [A_PDL_ETAT] =''
-> OA
-> [A_AECEVABLE] = 'O' AND [A_PDL_ETAT] = 'S' AND [AFF_K_PAEV_FAN] =''
Now I use the following regex:
Code:
String rBloc = "([^\\(\\)]+)";
And I get the following result:
Code:
-> [A_AECEVABLE] =''OA
-> [A_AECEVABLE] = 'O' AND [A_PDL_ETAT] =''
-> OA
-> [A_AECEVABLE] = 'O' AND [A_PDL_ETAT] = 'S' AND [AFF_K_PAEV_FAN] =''
Can you help with this. Thanks in advance.
Bookmarks