Re: [Tutor] Regex ^$ not behaving as expected

2016-12-08 Thread Edmund Butterworth via Tutor
Dear Danny, That was great, just the information I wanted and very prompt too. I've tried the /f//lags =/ and it works. Thank you so much. I had been banging my head against this for the last two days, googling the universe and even considering going back to PERL, but for a lot of reasons I

[Tutor] Regex ^$ not behaving as expected

2016-12-08 Thread Edmund Butterworth via Tutor
Hello, I am new to Python and trying to get to grips with the re regex module. I’m running Python 3.4 under Debian Jessie with a Cinnamon desktop. My understanding is that when the re.M flag is raised, |^| will match at the beginning of the string and also at the beginning of each line withi