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 391 times
1
rink.attendant.6
- 40,889
- 58
- 100
- 149
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
- 39,708
- 9
- 81
- 104