I just started writing PHP again after a few years on other languages and I read through some of my older scripts, and found this regular expression that I can't seem to remember writing, and I can't seem to find an answer for what it does.
The context is cleaning up some user input. Does it have anything to do with UTF8 or Latin character ranges?
$keyword = preg_replace('/[^ -~]/iu', '\\S{0,1}', $keyword);