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 8999193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:08:51+00:00 2026-06-16T00:08:51+00:00

I have a set of 40 characters that have their own code points. For

  • 0

I have a set of 40 characters that have their own code points. For example, U0678, u0679 and so on. How to retrieve words, strings and sub strings that only contain those characters from the text based on their code point, ignoring all other characters? I’m suffering with my old code

private string token(string x)
{
    Regex exclude = new Regex(@"\d|\s+|/|-|[A-Za-z]", RegexOptions.Compiled);
    return string.Join(" ",
      (from s in Regex.Split(x, "([ \\t{}():;.,!ـ؛،؟ \"\n])")
       where !exclude.IsMatch(s)
       select s).ToArray());
}

Edited. Assume i have the string “aaa bbb ccc ddd “. Then I would like to retrieve the words aaa and bbb only. then I would like to do something like

Regex regEx = new Regex(@"\u0041|\u0042");
Match match = regEx.Match(mystring);
if(match.Success)
 then do somthing

But i have 40 characters.

  • 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-06-16T00:08:52+00:00Added an answer on June 16, 2026 at 12:08 am

    Ok, so you have a set of space delimited strings, and a set of 40 characters. You wish to find which of those strings (separated by spaces) are built up of only combinations of those 40 characters?

    @ Chris, yes, exactly .

    var charSet = new HashSet<char>("abcde\x015f" + Regex.Unescape("\u0066"));
    //or var charSet = new HashSet<char>(new[] { 'a', 'b', 'c', 'd', 'e', 'ş', 'f'});
    //or var charSet = new HashSet<char>(new[] { '\x0061', '\x0062', '\x0063', '\x0064', '\x0065', '\x015F', '\x0066'});
    //or var charSet = new HashSet<char>(Regex.Unescape("\u0061\u0062\u0063\u0064\u0065\u015F\u0066"));
    //or var charSet = new HashSet<char>("\x0061\x0062\x0063\x0064\x0065\x015F\x0066");
    
    string input = "abc  defş aaa xyz";
    
    var words =  input.Split()
                    .Where(s => !String.IsNullOrWhiteSpace(s))
                    .Where(s => s.All(c => charSet.Contains(c)))
                    .ToList();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have set the eclipse java formatter to wrap lines that exceed 120 characters
I have a set of strings containing characters in a PHP script, I need
I have code that manipulates binary files using fstream with the binary flag set
I have a set of characters I want to remove from a string :
I have an NSString which is splitted into set of characters. I need to
I have the following animation set up using Three.js: http://frontier.lincoln.ac.uk/3d/development/Stage2/characters/man2.html Please ignore the ropey
I have a spinner that is populated with a list of strings such as
I've recently set up my own dedicated server and installed everything that is necessary
I have a database table that contains Swedish/Norwegian strings. When I query some data,
I'm pretty amazed by this. Chrome, Safari, Opera and Firefox all have their own

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.