I'm trying to tag and highlight a whole word based on the first character. In the example below I'm searching for hashtags "#". I want to tag and highlight the subsequent characters until the next space. So the characters "#hashtag" should all be highlighted blue. The code below finds the hashtags and highlights them blue but not the subsequent characters. I assume the problem is that I'm not using `"wordend"` correctly in `self.text_box.tag_add("hashtag{}".format(x), self.index, self.index + "wordend")` but I can't figure out what I'm doing wrong. 

According to effbot.org 

> 
> “wordstart” and “wordend” moves the index to the beginning (end) of
>  the current word. Words are sequences of letters, digits, and
>  underline, or single non-space characters.
>  <http://effbot.org/tkinterbook/text.htm>
> 
> 
> 

Any pointers welcome. 

Here is some sample code that replicates the problem:

```
import tkinter as tk
import tkinter.scrolledtext as St

    class Main(tk.Tk):

    def __init__(self):

        tk.Tk.__init__(self)
        self.text = "random text\nrandom text\n#hashtag random text\n#hashtag"

        self.text_box = St.ScrolledText(self)
        self.text_box.pack()

        self.text_box.insert("1.0", self.text)

        self.index = self.text_box.search("#", "1.0", stopindex=tk.END)
        x = 0
        while self.index != "":
            self.text_box.tag_add("hashtag{}".format(x), self.index, self.index + "wordend")
            self.text_box.tag_configure("hashtag{}".format(x), foreground="blue")
            self.index += "+1c"
            self.index = self.text_box.search("#", self.index, stopindex=tk.END)
            x += 1

main=Main()
main.mainloop()

```