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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:40:54+00:00 2026-06-13T15:40:54+00:00

I need input validation, good input validation to keep everything clean. So I want

  • 0

I need input validation, good input validation to keep everything clean. So I want a strict regular expression on “full name”, international so I need Unicode support. I downloaded XRegExp, which compiles “their format” to regular expressions and supports Unicode however:

Correct names:

  • John Elkjærd
  • André Svenson
  • Marco d’Almeida
  • Kristoffer la Cour

Incorrect names:

  • Hans
  • H4nn3 Andersen
  • Martin Henriksen!

So I need:

  1. Match unicode letter (a, æ)
  2. Match unicode accents (á, Ë etc.)
  3. Match unicode hyphens (- _ etc)

In PHP I can do the following operations to match:

\p{L} (unicode letter)
\p{Mn} (unicode accents)
\p{Pd} (unicode hyphens)

What I figured out, that I can do with XRegExp:

^\p{L}+$ would match ‘日本’ so only the letter one works, but how can I figure out how to do these unicode accents, hypens?

Thanks for help.

  • 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-13T15:40:55+00:00Added an answer on June 13, 2026 at 3:40 pm

    It looks like @lanzz gave you some good feedback about potential issues with name validation, but for the record, you can use the Unicode categories you mentioned with XRegExp just as you would with PHP. E.g., XRegExp('^[\\p{L}\\p{Mn}\\p{Pd} ]+$'). This requires XRegExp’s Unicode Categories addon. Note that the backslashes are escaped due to JavaScript string literal escaping rules.

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

Sidebar

Related Questions

I need to do a user input validation, and I want it validated both
I need jar files for java.util.regex in my project for input validation if any
I need to apply validation on input time intervals that are taken in as
I need do to some input validation but run into a question and I
I have created a form-based program that needs some input validation. I need to
I have a console application where I need to input numbers until enter x.
I am making static library for the first time and I need to input
I'm considering a design for a private messaging system and I need some input
I need to validate input to my application. The input is a formatted string
I need to match input strings (URLs) against a large set (anywhere from 1k-250k)

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.