What does /[^ -~]/ match?

What does /[^ -~]/ match?

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.

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);


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

PHP Interview Questions with Solutions: Prepare for PHP Interview

Prepare for PHP Interviews. Set Variable With php.ini File. Logic & Output Behind PHP Code Segment. Class Concept, Error & Functions in PHP. Start PHP Now!

PHP Web Application Development Company

As a top **PHP Web Application Development Company in USA**[https://www.dataeximit.com/php-development-services/](https://www.dataeximit.com/php-development-services/ "https://www.dataeximit.com/php-development-services/"), we at Data EximIT have...

Advantages of Hiring PHP Developer for your Website Project

PHP - Hypertext pre-processor, a scripting language used by many people in developing web pages, but most of us are unaware even of the full form. To train someone and make them learn this whole language is as difficult and time-consuming as it is...