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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:22:57+00:00 2026-06-11T04:22:57+00:00

I got a problem with a javascript regex. It doesn’t stop numbers and !

  • 0

I got a problem with a javascript regex.

It doesn’t stop numbers and “!” character while it should.
It works for the others special characters, and of course I have debuged it to see if it really does the test, etc… and it does. It return true even if there is numbers in my String.

This is the RegExp :

new RegExp("^[^\\- ][A-Za-z\u00C00-\u017F\\- ]+"); // \u00C00-\u017F = À-S(latin)

It is to validate a first name in a form.

The problem is weird because I have exactly the same regex on the server side in java, and it works perfectly.

Thanks for your answers 🙂

  • 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-11T04:22:58+00:00Added an answer on June 11, 2026 at 4:22 am

    You probably have some typo:

    \u00C00-\u017F
    

    C00 hex would be LARGER THAN 17F hex. But \u catches four characters only, see comment below.

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

Sidebar

Related Questions

I got a problem with JavaScript. I want a script that will pop-up on
I've got a problem concerning the javascript this keyword when used within a javascript
Hey everyone I got a javascript problem I can't seem to find a specific
Guess this is a pretty simple problem. I've got a regex and php that
Can someone rewrite this javascript. The problem now is that 1 regex is only
i've got a problem with javascript on a website i'm creating, it's only html
I've got a problem in Javascript using Barcodescannerplugin for Phonegap in an Android Application.
I'm struggling with a jquery or javascript problem. It already got annoying which tells
I got some problem with text width while it wrapping floating image. Here is
I've got a problem. I have a function (It doesn't return any information) and

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.