Link to home
Start Free TrialLog in
Avatar of Gary
GaryFlag for Ireland

asked on

Some regex help

Hi
I need to turn
Size{2} :  L/XL[22], S/M[19]

into

Size:L/XL,S/M

This is just an example, Size could be Colour or Style etc and the size options could be numerous.
ASKER CERTIFIED SOLUTION
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you need to retain numbers that aren't in braces/brackets, then let me know.
Avatar of Gary

ASKER

Nope, that works perfect
Thanks

(I hate regex)