Thank u
Thank u bv...
i understood concept but a small doubt..
in <font[^>]*><?(.*?)>?\s*( \w+)\s*<?/?(\1)>?</font>...y have u used '?' before every expresion?i didnt find differen in its absence...
User Profile
Collapse
-
-
\1 in regular expression
can anyone tell me usage of (\1) in regex??
Test String: <font size=10><span>l abel<span></font>
Pattern: <font[^>]*>(.*?)\s*\w+\s *(\1)</font>
This is working
but if i change latter <span> to </span>and try to write pattern with (/1),am not getting it.
Pls give the solution
Thank you -
-
list vs tuples
what are the major differences between list and tuples?Am unable to make out the same...
Thank u in advance -
gits,
Hatsoff for ur patience and attitude to help others....Leave a comment:
-
-
I know this forum will never disappoint and will clarify every minute doubts without criticizing.
Thank u so much...Leave a comment:
-
filter vs map vs reduce functions
I am not clear with concepts of filter vs map vs reduce functionsin list data structure.Can anyone explain them with examples.when and where they can be used??
Thanks in advance -
string module usage???
1) is it necessary to import "string" mod in order to use its function??
s=" python "
s.strip() gives 'python'
and
import string
string.strip(s) also gives python
Please tell me the difference and usage of string module...
2) What is difference between remove and delete?? -
Thank u vee10.I understoodLeave a comment:
-
communication between two frames???
hi!!
I have a username txt field and a label.label takes value dynamically from user txt field.
[HTML]<html>
<head>
<script >
function fun()
{ msg.innerText=" \t"+frm.usid.va lue +"!"}
</script>
</head>
<body>
<form name="frm"><BR> <BR>... -
hi...
This is a very simple code which might help you.
n=int(raw_input ('enter no. of lists'))
s=[]
for i in range(n):
l=[]
for j in range(2):
l.append(int(ra w_input('enter element')))
print l
s.append(l)
print s
s.sort()
#print s
x=[]
for i in range(0,len(s)-1):
...Leave a comment:
-
csv to array
hi,I am new to python.
my csv file contains data with combination of strings and integers.if i try to store it in a array using array module,type code is not matching.
as csv reader returns list of lists,wat type code i have to give??
a=array.array(' typecode',[initalizer])
wats the solution for it?
No activity results to display
Show More
Leave a comment: