--Read the EPOM Tooltips for the Dotall flag, plus all the others too.
--Do what is stated in the 'added' in my last post, and learn why.
--Add a '?' in your regex where suggested in the Tooltips.
--Teach yourself regular expressions by trial-and-error in Pythex, using the cheat-sheet as a reference.
--Find an online Python regular expression tutorial, and take it, paying special attention to the Multiline and Dotall flags. Trial-and-error is highly educational if you use one of your real example texts.
DaltonST
|