Home > Backend Development > PHP Tutorial > javascript - Regarding the problem of regular expression matching ASCII characters?

javascript - Regarding the problem of regular expression matching ASCII characters?

WBOY
Release: 2016-08-27 09:06:49
Original
2137 people have browsed it

Looking for a regular expression that matches all ASCII characters? I can't find anything on the Internet, but it's just copy and paste and doesn't match. I'm asking for some guidance!

Reply content:

Looking for a regular expression that matches all ASCII characters? I can't find anything on the Internet, but it's just copy and paste and doesn't match. I'm asking for some guidance!

<code>/[\x00-\xff]+/g</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template