Regular expressions with Indian characters

前端 未结 1 1452
别那么骄傲
别那么骄傲 2021-02-10 07:02

I wonder is it possible to write a regular expression for indian characters? I want to validate if the given character is an Indian letter or number. I found this two questions:

1条回答
  •  我在风中等你
    2021-02-10 07:40

    Well this should do

    [\u0900-\u097F]+// \uFFFF format supported by Java,.net
    

    or

    [\u{0900}-\u{097F}]+// \u{FFFF} format supported by perl,pcre
    

    or

    \p{Devanagari}//not widely supported
    

    0 讨论(0)
提交回复
热议问题