Find string at character(s)

In a dynamic text field, I need to be able to search for the string “http://” and all of the characters after that up until it reaches a <space> then return that whole string into a variable I can use.