#!/usr/bin/env python

import re

data = '118023092L'
patt = re.compile(r'\d+[lL]')
m = re.match(patt, data)
if m is not None:
    print(m.group())
else:
    print('not match')

d7fe192a2e810d940a75b4c342ea565b5a4edc2a
<mask token>

<mask token>
if m is not None:
    print(m.group())
else:
    print('not match')

<mask token>
data = '118023092L'
patt = re.compile('\\d+[lL]')
m = re.match(patt, data)
if m is not None:
    print(m.group())
else:
    print('not match')

import re
data = '118023092L'
patt = re.compile('\\d+[lL]')
m = re.match(patt, data)
if m is not None:
    print(m.group())
else:
    print('not match')

#!/usr/bin/env python

import re

data = '118023092L'
patt = re.compile(r'\d+[lL]')
m = re.match(patt, data)
if m is not None:
    print(m.group())
else:
    print('not match')
