I am trying to get some Regex to match and string that begins with ~ and ends with a space or the end of the line.
It's part of a Wiki Converter I'm cobbling together... I need to wrap anything that starts in ~ upto the next space (or EOL) in tags.
Example strings are:
"~Test" // matches Test
"~----" // matches ----
"~Test Bob" // matches Test
"~Test, Bob" // matches Test,
"Some ~Test Bob" // matches Test
"Some ~Test" // matches Test
Thanks