Hi gingaloon
if you have 12345 then the sequences of two digits are 12 23 34 45...
HTH - Mark
Update: my (guessed) explanation as to why you don't get what you want is that you're not modifying the pattern "in-place", so to speak, so the regexp engine doesn't take account of the changes it makes. This is one use for backreferences (\1 \2 \3)
Update 2: why not just s/(\d\d)/$1\n/g?
In reply to Re: Look behind and global
by maa
in thread Look behind and global
by gingaloon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |