help regarding re.search
Sagar Neve
nevesagar at gmail.com
Wed Sep 14 21:41:43 EDT 2011
Hi,
I have a small program where I want to do just a small regex operation.
I want to see if value of a variable 'A' is present in an another variable
'B'. The below code works fine but as soon as the variable 'A' has some
string including a dot it fails.
for example say:
B="xxxxyyyydpkg.ipazzzzz
The code works fine when A="dpkg"
however the code does not work when A="dpkg.ipa"
if re.search(A,B):
# do something.
Can somebody please help me ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110915/c545c380/attachment.html>
More information about the Python-list
mailing list