[Tutor] python coding using regular expression

sg geeth4sg at gmail.com
Thu Dec 21 06:56:55 CET 2006


hi,,,,
     i am new to python. i want help in regular expression.. anyone explain
or guide me for following problem..

the content of txt file is splitted using the pipe | symbol and sorted .
then the field in the first row is compared with field in the second row and
the second row field is compared with third and so on till end of file.. if
there is mismatch between the row, the error will be throw as follows..
For example,

david thomson
davis thomson

 in above string 'd' and 's' are mismatched.. so the error will be thrown.

-- 
View this message in context: http://www.nabble.com/python-coding-using-regular-expression-tf2863876.html#a8003182
Sent from the Python - tutor mailing list archive at Nabble.com.



More information about the Tutor mailing list