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?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-08-27 09:06:492168browse

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>
Statement:
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