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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:28:58+00:00 2026-05-28T03:28:58+00:00

From Personal names in a global application: What to store and How can I

  • 0

From
Personal names in a global application: What to store and How can I validate a name, middle name, and last name using regex in Java?

i have read that you can’t really validate names because of international possibilities long names, multiple names, weird names. the general verdict is to avoid it and play safe instead – which means allowing all possible characters, combinations and just print it as html-safe mark-up.

but what about special characters? Shift + “one to nine” series and others, should i just allow them to be placed in the database and “play safe” or should i screen them out?

i would also want users of my program to responsibly input names (though i can’t guarantee that) but at least at some point there should be enforced rules but without totally locking out others who legitimately have a reason to use $ or @ in their names.

i’m on PHP and JS but same goes for all languages that use input validations

EDIT:

i do have to note, it does not really mean just the Shift 1-9. that’s just what i call them. it also includes special characters outside the 1-9. sorry for the confusion.

here’s the thing, my application is like a library application. a book has a title, an author, and a year. while the title and year may go to one table, the author i want listed to another table. these inputs are from the users. now i’m going to implement an autocomplete for the authors. but the data for autocomplete is based on the input of the users – the reliability of the autocomplete data will be based on the author inputs of the users.

just like facebook, how do they implement this? i haven’t seen any friend using special characters, unlike those friendster times where everytime i search, people with numeric or special charactered names come up first – not really great for an autocomplete.

  • 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-28T03:28:58+00:00Added an answer on May 28, 2026 at 3:28 am

    Shift + "one to nine" doesn’t really specify a set of characters, as it depends on the keyboard what such combinations produce. If you mean the characters in Shift positions of keys 0 to 9 in standard US keyboards, then I have to admit that I have never seen a person’s real name (as opposite to nicknames) with such characters. But I would not bet on their absolute absence from names. Yesterday, I learned that some orthography of the Venetian language uses “£” (pound sign) as a letter. Moreover, people might use easily available characters as replacements of characters they cannot easily produce on a keyboard, e.g. using “!” instead of “ǃ” (U+01C3 Latin letter retroflex click) or “e^” instead of “ê”.

    The question is what you expect to gain by excluding some characters. To catch typos?

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

Sidebar

Related Questions

I have two questions: From personal experience, what free blog engine is the best
I have 3 tables Person, Names, and Notes. Each person has multiple name and
I have a table of data of personal details of clients: ID name addressID
I want want to play video from my personal account in you tube. Intent
How can I return List<personel> data type from below procedure. If I press F5
From my website, I have a button which calls a method and then generates
From this context: import itertools lines = itertools.cycle(open('filename')) I'm wondering how I can implement
From time to time, I find myself using the same group of statements and
From 2.13.2/3 The double quote and the question mark ? , can be represented
I am trying to select from a mySQL table using prepared statements. The select

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.