Regular expression with the cyrillic alphabet

后端 未结 3 1729
暖寄归人
暖寄归人 2020-12-01 16:11

I have an jQuery function for word counting in textarea field. In addition its excludes all words, which are closed in [[[tripple bracket]]]. It works great with latin chara

3条回答
  •  鱼传尺愫
    2020-12-01 16:35

    Beware of using range of cyrillic letters, it may contain unnecessary characters within. There is bulletproof regexp contains only cyrillic letters:

    /^[аАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяЯ]+$/
    

提交回复
热议问题