I did a coding to get to print ext inside (" and within ") but i get the errors.
I mean ,if i have text: hello everyone("Can you see"), then it has to print as Can you see
My coding:
>>> import re
>>> s = "<_io.TextIOWrapper ('C:/Python34/abcd.txt') mode='w' encoding='cp1252'>"
>>> m = re.search(r"(?<=\('\=\')[^\']*", s)
>>> m.group()
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
m.group()
AttributeError: 'NoneType' object has no attribute 'group'
(", but your code has('instead. Should you be looking for one or the other, or both?