Looking for patterns in chaos
P1: I want to see 1, 2, 4 and 5.D1: print 1, print 2, print 4, print 5...P2: I want to see 3D2: print 3P2: 3 should be after 2 and before 4D2: output.replace /(2) (4)(.+)3/\1{3}\2\3/...P3: I want to see 6D3: WTF