×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    1

    Question How to extract numbers from a string

    Hello Guys!
    please! I'm wondering how can I extract numbers from a string? numbers Only
    I use Python...Thanks in advance

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: how to find a number is even or not , with python.

    You can just "cast" it, like a=int(string), if I understand correctly. Note that there is a complete book about Python in the Wiki: http://www.developer.nokia.com/Commu...hon_on_Symbian
    For splitting a string, use, well, split. That is a function. See http://stackoverflow.com/questions/9...bers-in-python for example.
    [Side note: the blue "Post New Thread" button is located just below the list of posts.]
    Last edited by wizard_hu_; 2013-02-24 at 00:40.

Similar Threads

  1. takes two string form user and show the concatenated string result in new dialog box
    By swaraj.prasad@gmail.com in forum Symbian User Interface
    Replies: 3
    Last Post: 2011-03-17, 10:27
  2. PNG Extract to String ?
    By MaRZoCHi in forum Symbian
    Replies: 1
    Last Post: 2009-11-22, 10:54
  3. Replies: 6
    Last Post: 2008-10-15, 07:44
  4. extract integer from string
    By chishti.hameed in forum Symbian
    Replies: 1
    Last Post: 2005-05-28, 10:44
  5. How can I extract number from string ?
    By zhang_guoqing in forum Symbian
    Replies: 2
    Last Post: 2003-06-09, 07:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×