intersection of 2 strings
Antoine Logean
al at biolinux.ch
Tue Aug 3 08:37:47 EDT 2004
Hi,
What is the easiest way to get the intersection of two strings in
python (a kind a "and" operator) ?
ex:
string_1 = "the_car_of_my_fried_is_bigger_as_mine_but_my_girlfriend_is_more_beautifull"
string_2 =
"my_girlfriend_is_more_beautifull_and_has_blue_eyes"
and the intersection :
string_1 "and" string_2 = "my_girlfriend_is_more_beautifull"
thanks for your help
Antoine
More information about the Python-list
mailing list