jpgpi250's regex approach should give you a good starting point to experiment with.
But please note that Pi-hole is a DNS filter.
As such, it can only filter domains, since a client will only send requests to resolve a given domain to Pi-hole, i.e. Pi-hole only ever sees the domain/host part of a URL you point your browser to.
That's the only plain domain on your list.
All other entries are URLs (with the http:// scheme stripped), referencing certain resources hosted via a given domain.
That said, as a URL like dl.dropboxusercontent.com/* is referencing any resource, that could be achieved by blocking the respective domain as well (i.e. dl.dropboxusercontent.com)
All other entries stating more specific resources (like *.dropbox.com/photos/album/*) are not visible for Pi-hole, i.e. you cannot specifically block or allow those.
You may choose to allow/block the parent domain instead, but note that this may result in allowing/blocking more than you may intend to.