I'm trying to build a regular expression in js and for some reason I can't enter the underscore character, although all the other special characters can be entered. Here is my expression:
^[А-ЯЁа-я\w\d]*$
Expected result: Абвг_#$
Can you please tell me why this happens and how to fix it?