This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author djr_python
Recipients djr_python, ezio.melotti, mrabarnett, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
Date 2019-04-02.18:06:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554228368.59.0.219643697594.issue36510@roundup.psfhosted.org>
In-reply-to
Content
#Python 3.7.2 Tk version 8.6.8
#IDLE version: 3.7.2
#Following code does not return ALL the partial matched patters within a string

import re
    #_____________
    #Normal Mode
    #_____________

atRegex = re.compile(r'...at')
TextStr=(atRegex.findall(':at-at~at:  The Bigcat sat in the hat sat on the flat sat mat sat.'))
print('\nFull Text String:---> :at-at~at: The Bigcat sat in the hat sat on the flat sat mat sat\n')
print('\n Normal Mode: Returns\n' +  ':--->' + str(TextStr))


    #_____________
    #Greedy Mode
    #_____________

atRegex = re.compile(r'...at*')
TextStr=(atRegex.findall(':at-at~at:  The Bigcat sat in the hat sat on the flat sat mat sat.'))
print('\nFull Text String:---> :at-at~at: The Bigcat sat in the hat sat on the flat sat mat sat mat\n')
print('\n Greedy Mode: Returns\n' +  ':---> ' + str(TextStr)+'\n')

"""
#===================================================================
# IDLE OutPut Normal Mode and Greedy Mode:  multiple 'sat' are missing 
#===================================================================
Full Text String:---> :at-at~at: The Bigcat sat in the hat sat on the flat sat mat sat.

 Normal Mode: Returns
	:---> ['at-at', 'igcat', 'e hat', ' flat', 't mat']


Full Text String:---> :at-at~at: The Bigcat sat in the hat sat on the flat sat mat sat.


 Greedy Mode: Returns
	:---> ['at-at', 'igcat', 'e hat', ' flat', 't mat']

"""
History
Date User Action Args
2019-04-02 18:06:08djr_pythonsetrecipients: + djr_python, terry.reedy, paul.moore, tim.golden, ezio.melotti, mrabarnett, zach.ware, steve.dower
2019-04-02 18:06:08djr_pythonsetmessageid: <1554228368.59.0.219643697594.issue36510@roundup.psfhosted.org>
2019-04-02 18:06:08djr_pythonlinkissue36510 messages
2019-04-02 18:06:08djr_pythoncreate