Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
re.findall solution in Creative category for Split Pairs by paf
from typing import Iterable
import re
def split_pairs(text: str) -> Iterable[str]:
return re.findall(r'\w.', (text + "_") if len(text)%2 else text)
March 12, 2023
Comments: