Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python regex find first

>>> re.findall('d+|$', 'aa33bbb44')[0]
'33'
>>> re.findall('d+|$', 'aazzzbbb')[0]
''
>>> re.findall('d+|$', '')[0]
''
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #regex #find
ADD COMMENT
Topic
Name
6+9 =