Back references in str_replace()

#switch the order of the second and third words in sentences
sentences |> 
  str_replace("(\\w+) (\\w+) (\\w+)", "\\1 \\3 \\2") |> 
  str_view()
##  [1] │ The canoe birch slid on the smooth planks.
##  [2] │ Glue sheet the to the dark blue background.
##  [3] │ It's to easy tell the depth of a well.
##  [4] │ These a days chicken leg is a rare dish.
##  [5] │ Rice often is served in round bowls.
##  [6] │ The of juice lemons makes fine punch.
##  [7] │ The was box thrown beside the parked truck.
##  [8] │ The were hogs fed chopped corn and garbage.
##  [9] │ Four of hours steady work faced us.
## [10] │ A size large in stockings is hard to sell.
## [11] │ The was boy there when the sun rose.
## [12] │ A is rod used to catch pink salmon.
## [13] │ The of source the huge river is the clear spring.
## [14] │ Kick ball the straight and follow through.
## [15] │ Help woman the get back to her feet.
## [16] │ A of pot tea helps to pass the evening.
## [17] │ Smoky lack fires flame and heat.
## [18] │ The cushion soft broke the man's fall.
## [19] │ The breeze salt came across from the sea.
## [20] │ The at girl the booth sold fifty bonds.
## ... and 700 more