a regex question

Brian Oney brian.j.oney at googlemail.com
Fri Oct 25 07:12:56 EDT 2019



On October 25, 2019 12:22:44 PM GMT+02:00, Maggie Q Roth <rothmq at gmail.com> wrote:
>Hello
>
>There are two primary types of lines in the log:
>
>60.191.38.xx        /
>42.120.161.xx       /archives/1005
>
>I know how to write regex to match each line, but don't get the good
>result
>with one regex to match both lines.

What is a good result?

The is an re.MULTILINE flag. Did you try that? What does that do?




More information about the Python-list mailing list