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

  • Home
  • SEARCH
  • 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 861437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:58:43+00:00 2026-05-15T08:58:43+00:00

I m trying to match unicode characters in Java. Input String: informa String to

  • 0

I m trying to match unicode characters in Java.

Input String: informa

String to match : informátion

So far I ve tried this:

Pattern p= Pattern.compile("informa[\u0000-\uffff].*", (Pattern.UNICODE_CASE|Pattern.CANON_EQ|Pattern.CASE_INSENSITIVE));
    String s = "informátion";
    Matcher m = p.matcher(s);
    if(m.matches()){
        System.out.println("Match!");
    }else{
        System.out.println("No match");
    }

It comes out as “No match”. Any ideas?

  • 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-15T08:58:44+00:00Added an answer on May 15, 2026 at 8:58 am

    The term “Unicode characters” is not specific enough. It would match every character which is in the Unicode range, thus also “normal” characters. This term is however very often used when one actually means “characters which are not in the printable ASCII range“.

    In regex terms that would be [^\x20-\x7E].

    boolean containsNonPrintableASCIIChars = string.matches(".*[^\\x20-\\x7E].*");
    

    Depending on what you’d like to do with this information, here are some useful follow-up answers:

    • Get rid of special characters
    • Get rid of diacritical marks
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to match a range of Unicode characters and I am wondering
I'm trying to match a string that looks something like this: <$Fexample text in
I'm trying to match a string 123,1234 using regex.h. Following pattern does the job:
I'm trying to come up with a Java regex that will match a filename
I'm trying to match usernames from a file. It's kind of like this: username=asd123
I'm trying to match out of this text: <a href=http://english317.ning.com/profiles/blogs/bad-business-writing-487>Continue</a> </div> <p class=small> Added
I am trying to match a multi line text using Java. When I use
Trying to match a strings in notepad++ with a regular expression. The string I'm
I trying to match a variable from an url. This works fine if I
I'm trying to match all occurances of string in something like the following sequence

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.