Python Forum
Python3 Regex Help. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python3 Regex Help. (/thread-14042.html)

Pages: 1 2


RE: Python3 Regex Help. - Stealthychu - Nov-12-2018


After doing your last changes my code now looks like this and appears to work exactly as it should so thank you very much.
Do you have any suggestions for good sites where i can revise this topic to a further degree?

I also have one final question.

My current sql table now looks like this.

[Image: cTVOcq]

Is there a command you can enter into linux to delete the first three incorrect lines? i understand if you dont know as it is off topic for python.

Thanks for all your help


RE: Python3 Regex Help. - Gribouillis - Nov-12-2018

(Nov-12-2018, 06:37 PM)Stealthychu Wrote: Do you have any suggestions for good sites where i can revise this topic to a further degree?
You could start with the PyMotw3 about the re module. It also contains a collection of links at the bottom of the page.

(Nov-12-2018, 06:37 PM)Stealthychu Wrote: Is there a command you can enter into linux to delete the first three incorrect lines?
If you want to remove them from the database, use an adapted SQL query. If you only want to remove them from the displayed table, use a condition in the SELECT statement to ignore lines where the IP address is unknown for example.


RE: Python3 Regex Help. - Stealthychu - Nov-12-2018

Thank you very much, thats very helpful!