Re: splitting strings with python

2005-06-09 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > im trying to split a string with this form (the string is from a > japanese dictionary file with mulitple definitions in english for each > japanese word) > > > str1 [str2] / (def1, ...) (1) def2 / def3 / (2) def4/ def5 ... / > > > the varibles i need are str*, d

Re: splitting strings with python

2005-06-09 Thread [EMAIL PROTECTED]
sorry, i should be more specific about the encoding it's euc-jp i googled alittle, and you can still use re.findall with the japanese kana, but i didnt find anything about kanji. -- http://mail.python.org/mailman/listinfo/python-list

Re: splitting strings with python

2005-06-09 Thread [EMAIL PROTECTED]
one problem is that str1 is unicode (japanese kanji), and str2 is japanese kana can i still use re.findall(~)? thanks for your help! -- http://mail.python.org/mailman/listinfo/python-list

Re: splitting strings with python

2005-06-09 Thread inhahe
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > im trying to split a string with this form (the string is from a > japanese dictionary file with mulitple definitions in english for each > japanese word) > > > str1 [str2] / (def1, ...) (1) def2 / def3 / (2) def4/ def5 ... / > > >

splitting strings with python

2005-06-09 Thread [EMAIL PROTECTED]
im trying to split a string with this form (the string is from a japanese dictionary file with mulitple definitions in english for each japanese word) str1 [str2] / (def1, ...) (1) def2 / def3 / (2) def4/ def5 ... / the varibles i need are str*, def*. sometimes the (1) and (2) are not inc