in reply to Re: YET another regexp puzzle
in thread YET another regexp puzzle
I didn't want to "move" the first char across the string. I want to swap 1&2, 2&3, 3&4. This way:
12345
21345
13245
12435
12354
Thanks though.. your idea is cool. EVERY response helps me learn a little more even if it's not exactly what I was after.