0

I'm trying to validate a string whether is is csv or not.

here's mine .

/^(\w*)?(,\s)?(\w*)?/ig

It matches when I tried one line like

abcd, abcd

but when I tried other language like

ㄱㄴㄷㄹ, ㄱㄷㄹㄷ

or

ナムウィキ, ナムウィキ

it doesn't match. Is there are way to solve this difficulty?

Mohammad
  • 20,339
  • 15
  • 51
  • 79
JillAndMe
  • 2,921
  • 4
  • 24
  • 47

0 Answers0