RE: Tokenize

Discussion in 'Python' started by Bjorn Pettersen, Jul 24, 2003.

  1. > From: Ken Fettig [mailto:]
    >
    > Does Python have an equivelent to the Java StringTokenizer?
    > If so, what is it and how do you implement it?


    I have no idea what the Java StringTokenizer class does (this being a
    Python group and all -- references always welcome <wink>), but perhaps
    the split() method on strings gets close to what you want
    (http://www.python.org/doc/current/lib/string-methods.html)?

    -- bjorn
    Bjorn Pettersen, Jul 24, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lans
    Replies:
    9
    Views:
    470
    Chris \( Val \)
    Jul 10, 2003
  2. Kelvin@!!!

    tokenize a string

    Kelvin@!!!, Feb 24, 2005, in forum: C++
    Replies:
    4
    Views:
    7,886
  3. Ram Laxman

    How can I use strtok for tokenize integers

    Ram Laxman, Apr 11, 2004, in forum: C Programming
    Replies:
    6
    Views:
    1,305
    Christopher Benson-Manica
    Apr 12, 2004
  4. Ken Fettig

    Tokenize

    Ken Fettig, Jul 24, 2003, in forum: Python
    Replies:
    4
    Views:
    9,201
    Hartmut Goebel
    Jul 28, 2003
  5. Andr? Roberge
    Replies:
    1
    Views:
    501
    Tim Peters
    Sep 10, 2004
Loading...

Share This Page