Java Regex Facebook : I’m trying to figure out a regex expression in java for this facebook url:

https://www.facebook.com/566162426788268/photos/a.566209603450217.1073741828.566162426788268/1214828765254961/?type=3&theater

I have come up with the solution 

    \w++(?=/\?)

help appreicated