title: How to get the Regions Sublime creates when a word is selected?
body: <p>When you select a word in <a href="http://www.sublimetext.com/" rel="nofollow noreferrer">Sublime Text 2</a>, the word is highlighted and other words in the same document are outlined/boxed visually.  From what I understand all of those are called regions, but I am new to writing Sublime plugins and Python. </p>
  
  <p>How do I get all of those regions in Python?  According to the <a href="http://www.sublimetext.com/docs/2/api_reference.html#sublime.View" rel="nofollow noreferrer">API</a>, I might be able use <code>get_regions(key)</code> but I have no idea what the key might be! </p>
  
  <p>I was able to make my own regions by using <code>find_all</code> with the currently selected word, but the regions are a little different than what Sublime outlines. I'd like to somehow access the built-in functionality, if possible.</p>
  
  <p><img src="https://i.stack.imgur.com/8NEH0.png" alt="Selected and outlined text"></p>
  
  <p>In the image, I've selected "text" and Sublime outlines all other word matches.  Basically, I want to get that RegionSet.</p>