I’m currently messing with the tumblr API for a project.
The problem I seem to have is I have to be able to extract the username from the src url e.g.
http://(you).tumblr.com/api/read/json
I looked into using something like substr() but I can’t guarantee the number of characters to extract.
Any ideas?
using the regular expression:
in short:
will evaluate to
to elaborate: