shell 获取字符串中某单纯词的后面一个单词

shell 获取字符串中某单词的后面一个单词如:....there are three trees!把three提出来放在变量里。there前

shell 获取字符串中某单词的后面一个单词
如:
....there are three trees!
把three提出来放在变量里。
there前可能还有其他单词,不过都在同一行中。
求各位帮忙阿!
[解决办法]
可以使用正则表达式