It sort of looks like a non-www redirect to www. Apache is still mostly a mystery as far as writing what I want with it though. Go to where you got the code (or plug it in to your favorite search engine) and see what people are saying in regards to that snippet.
In regex though ^ means "starts with" and $ means "ends with".