May I know how to extract the following data using REGEX?
1) textA;textB;textC;textD
Extract "textA;textB;textC" aka parent of textD
2) textA;textB;textC;textD AB(numberA)
Extract "textA;textB;textC;textD" aka parent of AB(numberA)
3) textA;textB;textC;textD AB(numberA) Extract "numberA" for comparison
currently implementation, i use java string function, which make it un-configurable. I suspect the user didn't give me the actual data and I need to change the function again in the near future. I hope to use regex to make the function configurable.