git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a regex question



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?