I\'m trying to get the following regex to match a search term followed by >, ~, +, with or without spaces before t
>
~
+