Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 978677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:05:40+00:00 2026-05-16T04:05:40+00:00

^[^\x00-\x1F\x7F-\xFF]+$ This regex will properly fail to match a string that contains non-printing (hex

  • 0
^[^\x00-\x1F\x7F-\xFF]+$

This regex will properly fail to match a string that contains non-printing (hex 00-1f) or ASCII extended characters (hex 80-FF), but, unlike PHP, lets non-ASCII utf-8 characters pass. (eg. 日本واستقرارهहिन्दीދިވެހިބަސްગુજરાતી한)

Looking at the wikipedia page on UTF-8 all of those should fall in the 80-ff range. Does anyone know what I’m missing?

Also, if you could explain how to ignore quoted text, you would be my hero forever.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:05:40+00:00Added an answer on May 16, 2026 at 4:05 am

    Hmm… instead of rejecting byte ranges, try matching actual Unicode characters, e.g.:

    ^[\u0020-\u007e]+$
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string that after print is like this: \x4d\xff\xfd\x00\x02\x8f\x0e\x80\x66\x48\x71 But I want
The following will replace ASCII control characters (shorthand for [\x00-\x1F\x7F] ): my_string.replaceAll(\\p{Cntrl}, ?); The
Hay this regualr expression working fine for Full Windows Folder Path ^([A-Za-z]:|\\{2}([-\w]+|((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))\\(([^*/:?|<>\\,;[\]+=.\x00-\x20]|\.[.\x20]*[^*/:?|<>\\,;[\]+=.\x00-\x20])([^*/:?|<>\\,;[\]+=\x00-\x1F]*[^*/:?|<>\\,;[\]+=\x00-\x20])?))\\([^*/:?|<>\\.\x00-\x20]([^*/:?|<>\\\x00-\x1F]*[^*/:?|<>\\.\x00-\x20])?\\)*$ Matches d:\
I'm using the following regex to strip out non-printing control characters from user input
I am trying to .split() a hex string i.e. '\xff\x00' to get a list
I have this string \x00\x12\xf8\x05\x74\xa2 , and following result: >>> s = \x00\x12\xf8\x05\x74\xa2 >>>
I would like to flip from big to little endian this string: \x00\x40 to
I have this RegExp expression I found couple weeks ago /([\r\n])|(?:\[([a-z\*]{1,16})(?:=([^\x00-\x1F'\(\)<>\[\]]{1,256}))?\])|(?:\[\/([a-z]{1,16})\])/ig And it's working
How can I do that? I tried return so.split(\\x00); or return so.split(String.valueOf(0x00)); nothing worked
I have this RegExp: ^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)([a-zA-Z]|)(\:|)[^\x00-\x1f\'\?\-\*\:\\;\|\/]+$ This do not allow filenames with a single dash.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.