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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:28:56+00:00 2026-05-13T13:28:56+00:00

My application creates a SharePoint site and an Active Directory group from user input.

  • 0

My application creates a SharePoint site and an Active Directory group from user input. Special characters that are mentioned in http://www.webmonkey.com/reference/Special_Characters becomes a big problem in my application. Application creates group names differently and application can’t access them from name property. I want the user input to be validated from a regular expression for these characters. I googled in and found some good regex sampler and testers but they won’t solve my problem. So can anybody suggest a regex for disallowing special characters which is a problem for Active Directory object names?

P.S. Application users may enter Turkish inputs, so regex should also allow Turkish characters like ‘ç’, ‘ş’, ‘ö’

  • 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-13T13:28:56+00:00Added an answer on May 13, 2026 at 1:28 pm

    You should start with something like this:

    ^(\p{L}|\p{N}|\p{P})+$
    

    This will match:

    • \p{L}: any kind of letter from any language
    • \p{N}: any kind of numeric character in any script
    • \p{P}: any kind of punctuation character.

    When you query your AD, you must to escape some special characters, described here: Creating a Query Filter

    If any of the following special characters must appear in the query filter as literals, they must be replaced by the listed escape sequence.

      ASCII     Escape sequence 
    character     substitute
        *           "\2a"
        (           "\28"
        )           "\29"
        \           "\5c"
       NUL          "\00"
    

    In addition, arbitrary binary data may be represented using the escape sequence syntax by encoding each byte of binary data with the backslash followed by two hexadecimal digits. For example, the four-byte value 0x00000004 is encoded as “\00\00\00\04” in a filter string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 342k
  • Answers 342k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think you're taking the idea of Unit Testing too… May 14, 2026 at 5:13 am
  • Editorial Team
    Editorial Team added an answer Your link needs to tell thickbox to load the URL… May 14, 2026 at 5:13 am
  • Editorial Team
    Editorial Team added an answer var myControl = new MyUserControl(); DockPanel.SetDock(myControl, Dock.Left); myDockPanel.Children.Add(myControl); Also see… May 14, 2026 at 5:13 am

Related Questions

I’m using Heather Solomon’s minimal publishing master page, I’ve got a simple feature with
My user have a password field such as 0!ZWQ2 saved in the database. I
I have an issue that is occurring after my server reboots. I have some
I anticipate this is going to be a very broad question however I shall
I've got a SharePoint application and I'm sad to say that in my SharePoint-induced

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.