import re

hexnum = re.search(r': ?([0-9a-fA-F]+)>', the_string).group(1)

It is worth you while to learn about regular expressions:
http://docs.python.org/2.7/library/re.html

There are ways to do this without regular expressions, and there are
simpler patterns for this specific formatting, more fussy about format, or
less fussy.


On Fri, Jun 21, 2013 at 6:29 AM, Hélio Miranda <helio...@gmail.com> wrote:

> Hi
> I do not know how to spit ()
> Having this string [<GridFSProxy: 51c428958774a70f68f69c0c>], how can I
> get just the number?
>
> Someone can help me?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to