-2

I am searching for a regular expression for allowing alphanumeric characters, special characters (-_'àâçèéêîôùûÀÈÙÇÉ), or spaces in the middle in JavaScript. I tried Googling but wasn't able to find that.

Can anyone help me out with this?

Thanks in advance.

Aymen Kanzari
  • 1,765
  • 7
  • 41
  • 73
  • Start with [this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) – hindmost Jul 10 '20 at 09:14

1 Answers1

-1

You can try something like this:

([\d\w\-'àâçèéêîôùûÀÈÙÇÉ])([\d\w\-' àâçèéêîôùûÀÈÙÇÉ][\d\w\-'àâçèéêîôùûÀÈÙÇÉ]+)*

Check this expression on https://regexr.com/

antropoff
  • 111
  • 2
  • 3
  • 14