Hi,
I have requirement to split a
string based on Regular expression which will be of the below format.
There are 3 different type of String values -
ABC_1234_XL.jpgXYZ_7890_SM.jpgPQ_R_4567_LG.jpg
in the above ABC, XYZ and PQ_R are 3 types of image types which I want to extract separately and compare it with respective list of corresponding Types fetched from DB.
So in case if I go with normal split by underscore "_", then it flunks the purpose while splitting the 3rd string.
So I need a solution to split these string based on Regular expression, where every time the center element will [0-9] and the left would be Image Type and the right would be Image Size.
Meaning - ImageType_ImageTypeID_ImageSize. We need to split this having the center element (imageTypeID) as base and get the left & right date by excluding the "_".
How to achieve this with Split along with Regex?
Help please and let me know in case if you need more info.