Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python regex find first

>>> re.search('d+|$', 'aa33bbb44').group()
'33'
>>> re.search('d+|$', 'aazzzbbb').group()
''
>>> re.search('d+|$', '').group()
''
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #regex #find
ADD COMMENT
Topic
Name
4+1 =