How to move the colors and size beside of "Color and Size" using regex? This is my regex: https://regex101.com/r/fB3jK9/1
The result should be like this:
My sample input is:
Color and Size - Dark Blue|Small
Dark Blue|Medium
Dark Blue|Large
Dark Blue|X-Large
Color and Size - Black|Small
Black|Medium
Black|Large
Black|X-Large
Ocean|Small
Ocean|Medium
Ocean|Large
Ocean|X-Large
Color and Size - Black|Small
Black|Medium
Black|Large
Black|X-Large
Black|2X-Large
Stone|Small
Stone|Medium
Stone|Large
Stone|X-Large
Stone|2X-Large
So far all I've been able to come up with to use is:
\n\t
But I need the output of:
Color and Size - Dark Blue|Small, Dark Blue|Medium, Dark Blue|Large, Dark Blue|X-Large
Color and Size - Black|Small, Black|Medium, Black|Large, Black|X-Large, Ocean|Small, Ocean|Medium, Ocean|Large, Ocean|X-Large
Color and Size - Black|Small, Black|Medium, Black|Large, Black|X-Large, Black|2X-Large, Stone|Small, Stone|Medium, Stone|Large, Stone|X-Large, Stone|2X-Large
// end output