Quote:
Originally Posted by makikomi
I've got to level 4 (I think) but searching for a small letter with 3 big ones either side will take me ages and I don't know code.
I did the previous one using find and replace.
|
Not a Python coder but for regex
s/[A-Z]{3}([a-z])[A-Z]{3}/\1/
If the last 3 letters will be the same as the first then you can use a back reference.
s/([A-Z]{3})([a-z])\1/\2/