Hi Team,
Can anyone please help me with some regex that will eliminate ‘_1’ which is at the extreme right position of the keyword from below pattern of text? -
Input String -
Q1_1 "
_1 "
Q1B_1 "
G1_1_1 "
PSM1_1 "
_1 "
PSM1_RESPONSE_1 "
DUMMY_PMS2_1 "
“_1”
Q11_1 "
Output String -
Q1 "
_1 "
Q1B "
G1_1 "
PSM1 "
_1 "
PSM1_RESPONSE "
DUMMY_PMS2 "
“_1”
Q11 "