Regex-Groups

Sat 17 May 2025

title: "Regex Groups" author: "Raja CSP Raman" date: 2019-04-20 description: "-" type: technical_note draft: false


import re
names = ['A2B8']

for name in names:
    m = re.match("^[A-Z]\d[A-Z]\d", name)

    if(m):
        print(m.groups())
        print('matched : ', name)
()
matched :  A2B8


Score: 0

Category: regex