Latin charcters included in JavaScript Regex

前端 未结 5 1790
礼貌的吻别
礼貌的吻别 2021-02-08 03:06

I\'m looking to included the Latin characters below in a JavaScript regex for a string validation.

ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏàáâãäåæçèéêëìíîïÐÑÒÓÔÕÖØÙÚÛÜÝÞßðñòóôõöøùúûüýþÿ         


        
5条回答
  •  北恋
    北恋 (楼主)
    2021-02-08 03:42

    Is it enough with:

    var stringReg = /[a-zA-Z\-\'\ ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏàáâãäåæçèéêëìíîïÐÑÒÓÔÕÖØÙÚÛÜÝÞßðñòóôõöøùúûüýþÿ
    ]/i;
    

    ?

提交回复
热议问题