I use replace(/[^\w\s]|_/g, "").replace(/\s+/g, " ") can filter all special character,
but I don't want filter the French letters.
Asked
Active
Viewed 522 times
1
rink.attendant.6
- 44,500
- 61
- 101
- 156
tianji
- 13
- 3
-
1an example would be better. – Avinash Raj Jul 08 '14 at 03:54
1 Answers
0
You can use this:
/[^\w\sàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒ]/g
You don't need special treatment for the _ as it is included in \w
Reference
zx81
- 41,100
- 9
- 89
- 105