Sinisterly
Python search/grep assistance. - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Python (https://sinister.ly/Forum-Python)
+--- Thread: Python search/grep assistance. (/Thread-Python-search-grep-assistance)

Pages: 1 2


RE: Python search/grep assistance. - ProfessorChill - 07-06-2018

(07-06-2018, 04:43 AM)Mimiakira Wrote:
(07-06-2018, 04:14 AM)ProfessorChill Wrote:
(07-06-2018, 02:53 AM)Mimiakira Wrote: Well, I've searched google first and only came back to "import re" but, I haven't searched on other forums since, people can be dicks.

Like this?
https://i.imgur.com/Sr5jkfZ.png

No... o.o . Look at the picture of the thread and tell me if that relates to what I'm looking for.
When I enter an email, password & etc... It should grep that info that I wanted and, displays in the terminal from the txt files.

Um... I'm not doing your homework?
I'm trying to poke you in the right direction.

Maybe you aren't looking for Grep in this case then.

After Grep
[Image: 6pTrR6x.png]

Before Grep
[Image: fRaXboq.png]

EDIT this is what .index does btw.
if user.index(grep) > -1:
doshithere()


RE: Python search/grep assistance. - Vultra - 07-06-2018

(07-06-2018, 04:54 AM)ProfessorChill Wrote:
(07-06-2018, 04:43 AM)Mimiakira Wrote:
(07-06-2018, 04:14 AM)ProfessorChill Wrote: Like this?
https://i.imgur.com/Sr5jkfZ.png

No... o.o . Look at the picture of the thread and tell me if that relates to what I'm looking for.
When I enter an email, password & etc... It should grep that info that I wanted and, displays in the terminal from the txt files.

Um... I'm not doing your homework?
I'm trying to poke you in the right direction.

Maybe you aren't looking for Grep in this case then.

After Grep
[Image: 6pTrR6x.png]

Before Grep
[Image: fRaXboq.png]

EDIT this is what .index does btw.
if user.index(grep) > -1:
   doshithere()

I've done my time digging and now, I need answers. Not clues.
I know what you mean but, I've done that path as well. Are you fluent with python at all because, "grep" isn't part of python although, I wish it was. otherwise, I wouldn't have post this thread lol.

The only idea I have is re but, it doesn't do what it should which makes it hard.