i'm trying to search for a dead simple pattern in the same fashion as i would with a grep command but i cannot get this to work with python.
In bash it is pretty straight forward to search for a pattern in a string or file.
echo -e "orange Apple oranges\npinapple Orange apples\nkiwi apple oranges" | grep -i "orange.*apple"
I've really tried to do my homework and google it but can't nail where the issue, please help?
Here's an example of the results grep(bash) vs python the python will always return no result even when debugging.
Aucun commentaire:
Enregistrer un commentaire