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
  • 21,175
  • 15
  • 55
  • 84
JillAndMe
  • 3,989
  • 4
  • 30
  • 57

0 Answers0