Skip to content

Instantly share code, notes, and snippets.

@trilliwon
Created December 12, 2021 06:55
Show Gist options
  • Select an option

  • Save trilliwon/0992c1edda827d7074d936552f31e98b to your computer and use it in GitHub Desktop.

Select an option

Save trilliwon/0992c1edda827d7074d936552f31e98b to your computer and use it in GitHub Desktop.

정규표현식으로 한글을 확인하는 방법

const re = /[-]+/g
const sample =
  "Pomodoro, 안녕하세요. Hello World! 아닌데요. Really 저 아니에요."
const result = re.exec(sample)
const result01 = sample.match(re)

console.log(result)
console.log(result01)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment