I've used python Regex's before, but always was matching from the beginning of the line. Now I'm trying to find something in the middle of a line and have run into a serious WTF??
In the python interpretor...
>>> import re
>>> ptrn = re.compile("Quick")
>>> x = "The Quick Brown Fox"
>>> ptrn.match(x)
No Match???
If I add a '.*' to the beginning of the pattern: ptrn = re.compile(".*Quick")
I get the match - but I don't want all that crap before it if I use findall or split.
What gives here?
In the python interpretor...
>>> import re
>>> ptrn = re.compile("Quick")
>>> x = "The Quick Brown Fox"
>>> ptrn.match(x)
No Match???
If I add a '.*' to the beginning of the pattern: ptrn = re.compile(".*Quick")
I get the match - but I don't want all that crap before it if I use findall or split.
What gives here?