If you want to get the whole path minus the leading slash, you could either use 'string range [HTTP::path] 1 end', or 'string trimleft [HTTP::path] "/"'.
So all requests to the VIP will only have a path equal to the pool name? Would a client ever request www.example.com/sample1/file.jpg for example? If so, the rule would try to assign a pool of pool_SAMPLE/FILE.JPG. Do you want to get the first part of the URI between the first forward slash and the second? To do that, you could use getfield (
Click here):
getfield [HTTP::path] "/" 1
Aaron