I have this formula in Google sheets.
=REGEXREPLACE(A3, "BOX OF\s*(\d+)?\s*BOTTLE", "BX-$1BT")
Original Expected
BOX OF 3 BOTTLE @ 10 TABLET BX-3BT @ 10 TABLET
BOX OF BOTTLE @ 10 TABLET BX-BT @ 10 TABLET
BOX OF 2 BLISTER @ 14 TABLET BX-2BL @ 14 TABLET
BOX OF VIAL 5 ML BX-VL 5ML
I would like the formula to work for BOTTLE, BLISTER, etc...
Is that feasable?

BOX OF\s*(\d*)\s*(?:(B)O(T)TLE|(BL)ISTER|(V)IA(L))regex101.com/r/jz83gP/1 and use the capturing groups in the replacement.