Lee Sander wrote:
> Hi,
> Suppose I have a string such as this
> 'aabccefghiiijkr'
>
> I would like to print out all the positions that are flanked by a run
> of symbols.
> So for example, I would like to the output for the above input as
> follows:
>
> 2 b 1 aa
> 2 b -1 cc
> 10
Hi,
Suppose I have a string such as this
'aabccefghiiijkr'
I would like to print out all the positions that are flanked by a run
of symbols.
So for example, I would like to the output for the above input as
follows:
2 b 1 aa
2 b -1 cc
10 e -1 cc
11 f 1 g
17 h 1 iii
17