সম্পাদনা
import re import re string = "a1b2c3" pattern = r"[12]" matches = re.findall(pattern, string) print(matches)
পূর্বরূপ