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="dpkg.ipaz
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="dpkg.ipaz
If A in B:
does nt seem to be working.
Am I missing something here.
-$agar
On Sep 15, 2011 7:25 AM, "Chris Rebert" wrote:
> On Wed, Sep 14, 2011 at 6:41 PM, Sagar Neve wrote:
>> Hi,
>> I have a small program where I want to do just a small regex operation.
>&
gives me:
./sample.py: line 9: syntax error near unexpected token `:'
./sample.py: line 9: `if (Opt_Param2 in url):'
Help.
On Thu, Sep 15, 2011 at 9:05 AM, Chris Rebert wrote:
> On Wed, Sep 14, 2011 at 8:33 PM, Sagar Neve wrote:
> > If A in B:
> > does nt seem to
ot;." +
str(cnt)
fout =open(foutname, "a")
fout.write(line)
fout.close
else:
print "here\n";
Yes. It is been resolved now for the sample program. however, as mentioned
in other post. It is not working in the main program
On Thu, Sep 15, 2011 at 10:25 AM, Kushal Kumaran <
kushal.kumaran+pyt...@gmail.com> wrote:
> On Thu, Sep 15, 2011 at 10:11 AM, Sagar Neve wrote:
> > H
bunch of all. My day is saved.
Best Regards,
Sagar Neve.
On Thu, Sep 15, 2011 at 2:35 PM, Gelonida N wrote:
> Hi Sagar,
>
> In order to be able to help you I propose following:
>
> On 09/15/2011 06:54 AM, Sagar Neve wrote:
> . . .
> > print "hell